Calculating or displaying a floating point number at compile-time may differ
from run-time. Although the source sets TARGET scope, the interpreter
performs calculation on the host with words in *INTERPRETER because TARGET
is disconnected. For instance, if a calculation is performed at compile
time and comma'ed into the target image and the target run-time does the
"same" calculation and compares it to the comma'ed value, they may differ
because the calculation of the two numbers occurred on different processors.
TARGET READY
SwiftX/68K FORCE CPU-30/33 ok
CONNECT TARGET ok
+000.200E FA>BA +000.200E .S
2386093 <-Top 0.20000000 <-NTop ok
DISCONNECT TARGET ok
+000.200E FA>BA +000.200E .S
2386093 2386092 <-Top 0.1999999 0.1999999 <-NTop ok
CONNECT TARGET ok
.S
2386093 2386092 <-Top 0.20000000 0.20000000 <-NTop ok
Note: FA>BA converts the floating-point number to a 32-bit fixed-point
number.
----------------------------------------------------------------------
swiftx_at_forth.com The SwiftX programming discussion email list
To unsubscribe, send subject "unsubscribe swiftx" to listar_at_forth.com
For help with listar commands, send subject "help" to listar_at_forth.com
Archives are located at http://www.forth.com/swiftx -- check them out!
----------------------------------------------------------------------
THIS LIST IS NOT FOR BUG REPORTS! Send bug reports to support_at_forth.com.
Received on Thu Feb 21 2002 - 08:49:38 PST
Subscribe to our e-mail list service. It's free for all SwiftForth and SwiftX users!
This archive was generated 08-Feb-2012. Archive updated nightly.