Recent

Author Topic: currtostrF -error:(  (Read 4349 times)

abmservice

  • Jr. Member
  • **
  • Posts: 69
currtostrF -error:(
« on: April 05, 2010, 07:59:42 pm »
var
x: currency;
s:string;
begin
x:=28.997;
s:=currtostrF(x,FFFixed,2);
s should be set to 29.00 and the function displays the I 28,: 0 - why?
« Last Edit: April 05, 2010, 08:07:41 pm by abmservice »

Wodzu

  • Full Member
  • ***
  • Posts: 171
Re: currtostrF -error:(
« Reply #1 on: April 05, 2010, 09:17:33 pm »
I must say I do not understand this but it works like that:

s:=currtostrF(x,FFFixed,1);

abmservice

  • Jr. Member
  • **
  • Posts: 69
Re: currtostrF -error:(
« Reply #2 on: April 06, 2010, 05:14:55 am »
I know but for me it is not a solution :( it is all about the money so I have 2 decimal places

abmservice

  • Jr. Member
  • **
  • Posts: 69
Re: currtostrF -error:(
« Reply #3 on: April 06, 2010, 12:04:40 pm »
I used FormatCurr ('0 .00, x);
It works! :)

 

TinyPortal © 2005-2018