[Solved] how to use the round maths function in asp.net?


If I’m understanding you, you need to keep leading 0 if user input is float and if not removes them. You can try this:

int number;
bool result = Int32.TryParse(rounded, out number);
if (result)
{
    // Your number will contain the number with no leading 0
}
else
{
    // Then you have a float.
}

solved how to use the round maths function in asp.net?