|
-
Aug 16th, 2006, 01:33 AM
#1
Thread Starter
Fanatic Member
FIX function in c#
hi guyz! is there any function in C#.net that is equivalent to FIX function in VB.net. Thanks in advance!
-
Aug 16th, 2006, 01:48 AM
#2
Re: FIX function in c#
The Fix function returns an integral value by rounding a number towards zero. Math.Truncate also rounds a number towards zero. The difference is that Fix accepts a parameter of any numerical type and returns a value of the same type, while Math.Truncate only accepts Double and Decimal parameters and returns a value of the same type. Given that there's not much point rounding a type that cannot have a fractional part that is not really a problem. The one thing that may be of interest is that Single values will be converted to Double.
-
Aug 16th, 2006, 01:54 AM
#3
Thread Starter
Fanatic Member
Re: FIX function in c#
Ok thanks!!! you're such a really great elp to me jmcilhinney!!! really thanks!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|