Kaya 0.5.1 reference for CGI::safeFloat

List of functions and data types in CGI

Float safeFloat(String x, Float min, Float max)

Arguments

Usage

Convert a string to a Float, throwing an Exception if the resulting Float is out of the specified range (note that due to floating-point inaccuracies, values very close to the minimum or maximum value may be incorrectly rejected or accepted).

Related

kaya@kayalang.org | Last modified 30 December 2008 | Supported by Durham CompSoc | Powered by Kaya