Kaya 0.4.4 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 29 November 2011 | Supported by Durham CompSoc | Powered by Kaya