VS: desimal numbers calculation

Esa Kivelä Esa.Kivela at ncrc.fi
Mon Oct 14 07:12:01 EDT 2002


> 
> Hi Esa,
> 
> RunRev expects numeric data to have a decimal point.
> Therefore, you'll have to convert between 'display'
> and 'calculation' format before and after calculation.
> If you don't need thousand separators, then it's as
> easy as:
>   function Conv4Disp pNumber
>     replace "." with "," in pNumber
>     return pNumber
>   end Conv4Disp
>   function Conv4Calc pNumber
>     replace "," with "." in pNumber
>     return pNumber
>   end Conv4Calc
> 
> Hope this helped,

Nope it dosen't. How I can calcalte desimal numbers fron text filed and put the results to the text field? I can put ie. 2,4 directly into text field without any convert?

EsaK



More information about the use-livecode mailing list