如何计算以下值 [英] How was the Following Value calculated
本文介绍了如何计算以下值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
美好的一天
我有 RadMaskedTextBox
,它会从数据库中使用以下值绑定。
Good Day
I have a RadMaskedTextBox
, which gets binded with the following value from the DB.
<telerik:RadMaskedTextBox IsEnabled="False" Height="22" HorizontalAlignment="Right" Mask="p1" MaskType="Numeric" MaskedText="0" EmptyContent="0" Margin="0,281,880,0" Name="RETURNONASSETS" telerik:StyleManager.Theme="Metro" VerticalAlignment="Top" Width="227" TabIndex="8" SelectionOnFocus="SelectAll" Grid.Column="1" />
0.0473445085040537
并在应用程序上格式化值as
4.7%
这是正确,现在我想了解它是如何做到的来到4.7。
我试过这个
0.0473445085040537
and on the application it format the value as
4.7 %
which is Correct, now I want to understand how did it come to 4.7.
I tried this
select round(0.0473445085040537,2)
select round(0.0473445085040537,3)
但我的计算结果不给我4.7。
我需要帮助这个TSQL使它成为4.7。
but my calc here does not give me 4.7.
I need help with this TSQL to make it 4.7.
推荐答案
看看 Silverlight的数字控制 - 数字掩码 [ ^ ]
如果你带一个仔细看看你的代码,你会看到Mask =p1
Best reg ards
Espen Harlinn
Have a look at RadControls for Silverlight - Numeric Mask[^]
If you take a closer look at your code you''ll seeMask="p1"
Best regards
Espen Harlinn
这篇关于如何计算以下值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文