This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
crpl:docs:asfloat [2013/01/18 06:20] – grauniad | 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.. | ||
+ | </ | ||