Re: [TCLCORE] TIP #266: Numbers are Commands
by dgp other posts by this author
Apr 14 2006 8:32AM messages near this date
Re: [TCLCORE] TIP #266: Numbers are Commands
|
Re: [TCLCORE] TIP #266: Numbers are Commands
Quoting Arjen Markus <arjen.markus@[...].nl> :
> But the form ".0" is perfectly acceptable to other programming languages
> as representing a
> "floating-point" zero. It could also arise as the result of an operation:
>
> set a [1.0 * 0.0]
> $a + 1.0
>
> The string representation of a zero, as generated by the underlying C
> function, should
> then be checked to include the leading "0".
Just commenting on that narrow point...
The proposal is for Tcl 8.5 or later, and starting in Tcl 8.5,
we don't let some "underlying C function" format our numbers
for us. See TIP 132.
The generated string rep of a floating point value does not
begin with "."; you should be able to count on that.
DGP
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Tcl-Core mailing list
Tcl-Core@[...].net
https://lists.sourceforge.net/lists/listinfo/tcl-core
Thread:
Kristoffer Lawson
Arjen Markus
Peter MacDonald
Kristoffer Lawson
Peter MacDonald
Kristoffer Lawson
Peter MacDonald
Kristoffer Lawson
Arjen Markus
dgp
Arjen Markus
Brian Griffin
Peter MacDonald
Kristoffer Lawson
Gustaf Neumann
Donal K. Fellows
Donald G Porter
Neil Madden
David N. Welton
Arjen Markus
Kristoffer Lawson
Neil Madden
Kristoffer Lawson
Lars Hellström
Neil Madden
Kristoffer Lawson
|