Suppose I have a decimal number 12345789.0 Also I have a RadioButtonList:
<asp:RadioButtonList ID="RadioButtonList1" runat="server">
<asp:ListItem>1</asp:ListItem>
<asp:ListItem>1000</asp:ListItem>
<asp:ListItem>1000000</asp:ListItem>
</asp:RadioButtonList>
When I choose radio item I want to get result like this:
Case 1: 123456789.0/1 = 123456789.0
Case 1000: 123456789.0/1000 = 123456.7
Case 1000000: 123456789.0/1000000 = 123.45
Result should be decimal too. Take a look that results after point should be different.
Can anyone give me advice how to do it.