Real Numbers representation in Tcl language
Is it possible that on a 32-bit machine the maximum value for a Real number in Tcl language is 10^10 ? Instinctively I'd saythe number of bits assigned to the representation of a Real number is independent on the machine h/w architecture ... but I'm not familiar with Tcl and may be mistaken ... Thank you, MEM
On Wednesday 12 April 2006 03:04, Maura Edeweiss Monville wrote:
Is it possible that on a 32-bit machine the maximum value for a Real number in Tcl language is 10^10 ?
Nope. It is a full 32-bit number.
Instinctively I'd saythe number of bits assigned to the representation of a Real number is independent on the machine h/w architecture ... but I'm not familiar with Tcl and may be mistaken ...
Tcl stores doubles as, well, C doubles. So it is your C compiler that decides. On Linux, I would imagine that gcc is used. So it is whatever gcc would do. I know this because all our data (C data structures) are available as Tcl variables. We simply link the Tcl variables to our existing C structure storage. No funny business is needed.
Thank you, MEM
-- Roger Oberholtzer OPQ Systems AB
participants (2)
-
Maura Edeweiss Monville
-
Roger Oberholtzer