|
| |||||||||||||||
number.double s are converted to the integer immediately above it or below it
depending on the direction argument which may be:
"nearest" "towards_zero" "up" "down" .
chars are converted to their ASCII equivalent.
strings are read as a string of digits (with optional leading minus sign)
Everything else errors.
integer.<from false/>
0integer.<from "123"/>
123integer.<from <char "a"/>/>
97integer.<from 12.3 direction="up"/>
![]() | 13 |
integer.from can also take a radix argument to provide a base
for conversion of strings.
integer.<from "A" radix=16/>
10© Copyright 2007 Clear Methods, Inc.