G
Guest
Is there a way to display currency (i.e. including the $ sign) in a text box
but truncate any trailing zeros after the second decimal place? I need up to
four decimal places, but do not want to show trailing zeros after the second
decimal place. That is, I want to be able to display each of these examples:
$10.7438
$9.24 (two trailing zeros hidden)
$7.20 (one trailing zero displayed to ensure correct currency format; two
trailing zeros hidden)
but truncate any trailing zeros after the second decimal place? I need up to
four decimal places, but do not want to show trailing zeros after the second
decimal place. That is, I want to be able to display each of these examples:
$10.7438
$9.24 (two trailing zeros hidden)
$7.20 (one trailing zero displayed to ensure correct currency format; two
trailing zeros hidden)