Convert from double to decimal

Stimulsoft Reports.NET discussion
Post Reply
Yasser Mohammed ElSayed
Posts: 8
Joined: Mon Dec 14, 2009 7:43 am
Location: Alexandria

Convert from double to decimal

Post by Yasser Mohammed ElSayed »

Hii,

am new to Stimulsoft Reports and i tried to convert from double to decimal and i couldnt.

any help??(especially Stimulsoft consider any floating point number is a double )

thanks,
yasser
Yasser MOhammed ElSayed
Senior Software Engineer
Irange.net
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Convert from double to decimal

Post by Edward »

Hi

Please use the following expression:
C#

Code: Select all

Decimal decimalValue = (Decimal)doubleValue
Vb.Net

Code: Select all

Dim DecimalValue as Decimal = CDec(DoubleValue)
Thank you.
Post Reply