Hi guys, my system keeps outputting decimals at x.xxxxxxx when I just want them to be x.xx. Is there a truncate method out there for this? I saw Decimal.Truncate but I don't get how to specify a dymanic variable being truncated. Just says input decimal to truncate...how to I tell it how many to format it to?
Question
sathenzar
Hi guys, my system keeps outputting decimals at x.xxxxxxx when I just want them to be x.xx. Is there a truncate method out there for this? I saw Decimal.Truncate but I don't get how to specify a dymanic variable being truncated. Just says input decimal to truncate...how to I tell it how many to format it to?
Link to comment
Share on other sites
1 answer to this question
Recommended Posts