Format As Currency wrong

Please report bugs

Format As Currency wrong

Postby vic007 » Thu Jul 17, 2008 5:56 pm

Format As Currency gives the wrong answer when the value to be printed has decimals.
Dim c As Currency = 12.9999
Print "s="& Format(c, "Value: ######.#### in M", ".", False) & "!"

Gives s=Value: 36.9999.... in M! instead of 12.9999
vic007
 
Posts: 12
Joined: Mon May 12, 2008 9:06 pm

Return to Bug-Reports

cron