Re: TZF - Calculating

Marie Vihonsky <[email protected]> Tue, 09 Sep 2003 00:55:34 -0400
Newsgroups gmane.comp.lang.delphi.topaz
Message-ID <[email protected]>
Hi Pierre,

Have you tried the Topaz  'realval'  instead of 'val'?

Marie

Pierre Wittwer wrote:
> Hi Topaz-users (or Delphi-users),
> 
> I have a simple question. I have to convert a string into a real.e.g.
> s = '3.10'  and r is the real.
> Using Val(s,r,code) I get the real as r = 3.09999999999854......instead of
> 3.10
> Using the SReal of Topaz I get the correct  '3.10' in the string. But for
> calculating I need the real r
> What is wrong?  Thank you for your help
> 
> 
> Pierre Wittwer
> CH Stans
> 
> 
> 
> 

--^----------------------------------------------------------------
This email was sent to: [email protected]

EASY UNSUBSCRIBE click here: http://topica.com/u/?clvXPN.a5kvff.Z2NsZHQt
Or send an email to: [email protected]

TOPICA - Start your own email discussion group. FREE!
http://www.topica.com/partner/tag02/create/index2.html
--^----------------------------------------------------------------