Forum OpenACS Development: Number, Integer and ad_form checks

I have a question concerning number and integer. What is the drawback of using number everywhere instead of integer in day to day use of OpenACS?

Furthermore, do we have automatic checks on the input of a user depending on the type of the variable used? If not, where would I add this (as we e.g. don't have a range check for Integer Variables, which can get embarrasing if users are testing the system with large numbers).

Collapse
Posted by Don Baccus on
"number" is implemented via BCD, so arithmetic and comparisons are much slower than for "integer". Because "integer" is stored in the machine's native binary format, 32-bit for most machines today, with 64-bit integers making headway.

You would add the range checks for integer to the template form engine's VALIDATE proc for the integer type ...