| NEST HelpDesk | Command Index | NEST Quick Reference |
| Name: | cvi - Convert double/string to integer | ||
| Synopsis: | double cvi -> integer
string cvi -> integer
| ||
| Description: | If cvi is executed with a double, the resulting integer is the number without digits after decimal point (the same result as floor), if it is executed with a string that contains letters 0 is returned. If the string contains a double or integer, the corresponding integer is returned. Alternatives: Function int (undocumented) -> behaviour and synopsis are the same. | ||
| Examples: | 3.33 cvi --> 3 2 cvi --> 2 (23) cvi --> 23 (23.2323) cvi --> 23 (hello) cvi --> 0 | ||
| Diagnostics: | no errors are issued. | ||
| Author: | docu by Sirko Straube | ||
| Source: | /home/abuild/rpmbuild/BUILD/nest-2.4.1/lib/sli/typeinit.sli |
| NEST HelpDesk | Command Index | NEST Quick Reference |
© 2000-2010 The NEST Initiative