|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
How slow is floating point math really?
We currently have a couple floating point operations in our program. Is it absolutely vital that we change these? I know that I can multiply by 100 or 1000 to get rid the the decimal point, but I'd rather not for these operations.
So what do you guys think? Thanks, Nathan |
|
#2
|
||||
|
||||
|
Re: How slow is floating point math really?
I didn't think it was speed so much as general processor weirdness with memory. I'd multiply and remove the decimal. What exactly is preventing you from doing so? Time to execute? In that case, using floating point won't speed things up at all.
Last edited by psy_wombats : 13-02-2008 at 19:54. Reason: Speed clarification |
|
#3
|
||||||
|
||||||
|
Re: How slow is floating point math really?
Here are some other threads with some real data:
http://www.chiefdelphi.com/forums/sh...ad.php?t=52479 http://www.chiefdelphi.com/forums/sh...ad.php?t=63159 Besides taking more time, they also use more memory, which can cause wierd errors. |
|
#4
|
||||
|
||||
|
Re: How slow is floating point math really?
Quote:
-Kevin |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Results from timing floating point operations | owenhealy | Programming | 1 | 03-02-2008 01:13 |
| Floating point math zero | flippo | Programming | 3 | 09-02-2007 09:00 |
| Floating point math in PBASIC | John Gutmann | Programming | 2 | 26-12-2005 20:07 |
| Converting floating point to integers | logicalhippo | Programming | 3 | 29-01-2005 12:10 |
| really slow........................... | archiver | 2001 | 5 | 24-06-2002 00:48 |