This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| crpl:docs:asfloat [2014/10/01 19:02] – external edit 127.0.0.1 | crpl:docs:asfloat [2025/02/14 14:57] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ~~DISCUSSION~~ | + | |
| <- [[crpl: | <- [[crpl: | ||
| ===== asfloat | ===== asfloat | ||
| - | ^Arguments^Result^Notation^ | + | <-integer1 asfloat |
| - | |An item on the stack|Converted item |'' | + | |
| === Description === | === Description === | ||
| Converts an item on the stack to a floating point number and pushes it back onto the stack. | Converts an item on the stack to a floating point number and pushes it back onto the stack. | ||
| === Examples === | === Examples === | ||
| - | < | + | < |
| + | 4 3 div trace # yields 1 | ||
| + | 4 asFloat 3 div trace # yields 1.333.. | ||
| + | </ | ||