[TYPO3-team-core-v5] Validation: should '123' be considered a valid float?

Karsten Dambekalns karsten at typo3.org
Tue Sep 30 17:27:20 CEST 2008


Hi.

Andreas Förthner wrote:
> Just some ideas to the whole type-cast-magic. It seems to be a lot
> stranger than I thought until now. But I think you should be able to
> validate a float. 100 is no float it's an integer. This distinction
> should be possible. So the float and integer validator work correctly
> (at least the integer validator, I'm not sure about the current state
> of the float validator).

Ok. So, I can use the validator to validate a float, and it'll be valid 
only if it is a real float.

Now, in term of day to day use, validating floats coming from the 
browser/user is not possible directly. How can this be solved?

Regards,
Karsten


More information about the TYPO3-team-core-v5 mailing list