comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: Spin button widget??
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Spin button widget?? [message #45679 is a reply to message #45669] Fri, 23 September 2005 10:01 Go to previous messageGo to previous message
edward.s.meinel@aero. is currently offline  edward.s.meinel@aero.
Messages: 52
Registered: February 2005
Member
Peter Albert wrote:
>
> thanks for the tip, I just built it into an application. However, I'd
> like to mention a trap I stepped into: if setting the INCREMENT keyword
> to a float value like 0.1, the arrow_up button seems not to work. If
> you set it to a double precision value, it works. arrow_down always
> works. Very weird.
>
> Peter

Numerical analysis should be a required course for anyone who
programs...

Computers use base 2 arithmetic, not base 10. Therefore 0.1 cannot be
represented exactly on a computer. In particular, 0.1 in single
precision IS NOT EQUAL TO 0.1 in double precision.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Crisp characters in iTools
Next Topic: Re: Array juggling help needed

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Oct 10 17:33:20 PDT 2025

Total time taken to generate the page: 0.08265 seconds