locked
display number with two decimals in razor RRS feed

  • Question

  • User1655654435 posted

    Hi,

    I have a datatype of float where sometimes after division there are too many decimals. 

    I don't want to round up to nearest integer, like with the method float)Math.Round().

    I need to show up to two decimals like 12.35

    How can i display this correctly?

    Monday, June 3, 2019 11:58 AM

Answers

All replies