Note: Unsigned single values can be converted to a double simply by pushing a 0 on top of the value. For example, to convert the number 41999 to an unsigned-double:
41999 0 D. (displays 41999)
For clarity, this could be added as a colon definition:
: US>UD ( us – ud) 0 ;
Here “US>UD” means “unsigned-single to unsigned-double”. The stack signature shows an unsigned-single value on the top of the stack before conversion, and an unsigned-double value after the conversion.
|