RadNumericTextbox 舍入问题

5

代码:

<telerik:RadNumericTextBox ShowSpinButtons="False"  DisplayText="Infinite" 
                  ID="MaximumAmount_tb" runat="server"  IncrementSettings-InterceptArrowKeys="true">
                <ClientEvents OnFocus="OnMAximumAmounttbFocus" />
                </telerik:RadNumericTextBox>

 function OnMAximumAmounttbFocus(sender, args) {
    //alert(sender.get_displayValue());
    if (sender.get_displayValue() == "Infinite") {
        sender.set_value("9,999,999,999,999.99999");

    }
    else
    {return false; }

}

我在聚焦时总是得到10000000000000这个数字作为结果,为什么?如何解决我的问题以显示9999999999999.99999?

1个回答

6

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接