1CGI.safeFloat(3kaya) Kaya module reference CGI.safeFloat(3kaya)
2
3
4
6 CGI::safeFloat - Convert a string to a Float.
7
9 Float safeFloat( String x, Float min, Float max )
10
12 x The string to convert
13
14 min The minimum value
15
16 max The maximum value
17
19 Convert a string to a Float, throwing an Exception if the resulting
20 Float is out of the specified range (note that due to floating-point
21 inaccuracies, values very close to the minimum or maximum value may be
22 incorrectly rejected or accepted).
23
25 Kaya standard library by Edwin Brady, Chris Morris and others
26 (kaya@kayalang.org). For further information see http://kayalang.org/
27
29 The Kaya standard library is free software; you can redistribute it
30 and/or modify it under the terms of the GNU Lesser General Public
31 License (version 2.1 or any later version) as published by the Free
32 Software Foundation.
33
35 CGI.safeInt (3kaya)
36
37
38
39Kaya December 2010 CGI.safeFloat(3kaya)