Petr Vileta wrote:

> ---- Original Message ----- 
> From: <[EMAIL PROTECTED]>
> To: "Petr Vileta" <[EMAIL PROTECTED]>
> Cc: "ActivePerl" <[email protected]>; 
> <[EMAIL PROTECTED]>
> Sent: Thursday, November 10, 2005 3:55 PM
> Subject: **SPAM** Re: not equal?
> 
> 
> 
>>Petr Vileta:
>>
>>>Where is -1.5 ???
>>>If I add
>>>   print $t - $min;
>>>I get
>>>   -2.22044604925031e-016
>>
>>Ain't compooters wunnerful?  Back to the basics time. Internal number
>>representation versus "visible" output is NOT a case of what you get is
>>what you expect. One of the earliest comp-sci lessons is summed up by the
>>following:
>>
>>Or some such. Or is there a way you could do the work just using integers?
>>
> 
> The $min value is typed by user and I don't know what number user want.
> I'm writing a new Tk module for drawing graph with axis and with many 
> configurable options. But I don't know if some user want graph from 0 to 
> 300, another from -50 to +50 and another from -0.002 to + 12.4 :-)

Just add an extra digit to the min - maybe a 1 for example.

-1.5 becomes -1.51
_______________________________________________
ActivePerl mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to