Page 2 of 2

Re: Price rounding: Delete after coma

Posted: Fri Jun 08, 2018 6:44 pm
by ace16vitamine
ähm no. My Question: Any Ideas how to round the datas in my Array? :D

Re: Price rounding: Delete after coma

Posted: Fri Jun 08, 2018 6:50 pm
by Klaus
That's what I meant! Ever heard of REPEAT loops? 8)

Code: Select all

...
put t_array["vkpreise"] into ttt

## This is a typical example of the above mentioned REPEAT loop! :-D
repeat for each line tLine in ttt
   put format("%1.2f",tLine) & CR after ttt2
end repeat

## Delete last CR
delete char -1 of ttt2
put ttt2 into t_array["vkpreise"]
...

Re: Price rounding: Delete after coma

Posted: Sat Jun 09, 2018 12:40 am
by ace16vitamine
Klaus wrote:
Fri Jun 08, 2018 6:50 pm
That's what I meant! Ever heard of REPEAT loops? 8)
sure… now :-)

It is working Klaus, thank you!

Stef