Floating point models in .net framework

  • Thread starter Thread starter almurph
  • Start date Start date
A

almurph

Hi,


I'm just wondering does the C# .NET framework use the fixed floating
point model by default. I was talking to someone recently and they
said that this is switched off in C#.

Does anyone know how to switch it on by any chance? Would appreciate
any comments/suggestions/comments that you may be able to offer.

Thanks,
Al.

PS: I am using Visual Studio 9.0.21 and the .Net framework v3.5
 
Hi Patrice,

I have reversed engineered some C into C# code. I have noticed
that I am not getting exactly the right answers. Seems to me that C
handles floating point arithmetic differently than C#.

I have been told that C uses something called a "fixed floating
point" model by default but the c#.net framework does not have it
enabled by default.

Do you know how to switch it on by any chance? Hope this helps...

thanks,
Al.
 
Back
Top