Click here to Skip to main content
15,892,005 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
See more:
Good Day

I have a RadMaskedTextBox, which gets binded with the following value from the DB.


XML
<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

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
SQL
select round(0.0473445085040537,2)
select  round(0.0473445085040537,3) 


but my calc here does not give me 4.7.

I need help with this TSQL to make it 4.7.
Posted
v4
Comments
Richard C Bishop 6-Mar-13 10:14am    
Is that long decimal number going to be constant or will it change?

1 solution

Have a look at RadControls for Silverlight - Numeric Mask[^]

If you take a closer look at your code you'll see Mask="p1"

Best regards
Espen Harlinn
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900