Floating point models in .net framework

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
 
A

almurph

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top