Exforsys

Online Training

Exact Value

This is a discussion on Exact Value within the C and C++ forums, part of the Programming Talk category; My current applications which I am developing in C language have lot of scientific calculations particularly involving floating point numbers ...


Go Back   Exforsys > Programming Talk > C and C++

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 05-07-2007, 11:12 AM
Senior Member
 
Join Date: Apr 2006
Posts: 144
caradoc is on a distinguished road
Thumbs up Exact Value

My current applications which I am developing in C language have lot of scientific calculations particularly involving floating point numbers in it. I have to do lot of comparisons on these floating point numbers and take decisive actions based on that. So precision is an important factor for me for doing this process. I want to know whether the computations done using floating
point in C programming language return precision to all digits exactly as we do in calculator. If not how should I handle this situation?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 05-11-2007, 04:39 PM
Senior Member
 
Join Date: Apr 2006
Posts: 139
Ralph is on a distinguished road
Definitely you would not able to get exact precision as you get in calculator provided your computation in floats is too large in number. I assume since you are having exclusive scientific application you would surely have large float operations. C and C++ lacks in this aspect. If you opt to sue C and C++ for this specialized purpose of scientific application calculations it would not be a good choice. Not only with floating point precision some other operations which is lacked for full scientific computations with C and C++ are rounding, you might get error due to truncation of high-order digits appearing in scientific calculations and because of this you might experience overflows problem.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads

Thread Thread Starter Forum Replies Last Post
exact clone of foto and video sharing site by eikeberend1 JobHelper Microsoft.NET Offers 0 11-22-2006 12:17 PM
exact facebook clone by CameronThurston JobHelper Microsoft.NET Offers 0 11-22-2006 12:17 PM
comp.lang.c Answers to Frequently Asked Questions (FAQ List) Steve Summit Tech FAQ 0 06-01-2004 07:00 AM
[FAQ] FileMaker Pro - database for Macintosh and Windows Martin Trautmann Tech FAQ 0 04-17-2004 08:26 AM


All times are GMT -4. The time now is 08:28 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0
Copyright 2004 - 2007 Exforsys Inc. All rights reserved.