Click here to Skip to main content
15,891,423 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: Floating Point Math Pin
greldak17-Jul-14 22:07
greldak17-Jul-14 22:07 
GeneralRe: Floating Point Math Pin
Stefan_Lang17-Jul-14 22:27
Stefan_Lang17-Jul-14 22:27 
GeneralRe: Floating Point Math Pin
Duncan Edwards Jones17-Jul-14 22:36
professionalDuncan Edwards Jones17-Jul-14 22:36 
GeneralRe: Floating Point Math Pin
Dan Neely18-Jul-14 2:35
Dan Neely18-Jul-14 2:35 
GeneralRe: Floating Point Math Pin
patbob18-Jul-14 5:51
patbob18-Jul-14 5:51 
GeneralRe: Floating Point Math Pin
Colborne_Greg18-Jul-14 7:14
Colborne_Greg18-Jul-14 7:14 
GeneralRe: Floating Point Math Pin
ssa-ed18-Jul-14 9:17
ssa-ed18-Jul-14 9:17 
GeneralRe: Floating Point Math Pin
irneb20-Jul-14 22:12
irneb20-Jul-14 22:12 
True, in most cases such accuracy is unnecessary and thus just CPU cycles wasted. But there are situations where the accuracy could make for easier accomplishments later.

Around 2000 the AutoCAD product changed the way it stored polylines (non regular polygons) - the old way was to save each line/arc segment in series as doubles for XYZ values. This had the detriment that the further you move away from 0,0,0 the worse accuracy became, to the point where such polygon was displayed as dis-joint vectors. The "new" method used a start point, then a length, angle and "bulge" for each vector - made computation a lot faster and the polygon itself didn't loose accuracy because of distance from origin. BUT it has a secondary inaccuracy in that its interaction with other objects became prone to errors - which in turn made things like hatching (fill the space between vectors) very problematic.

Anyhow, there are quite a few ways people have tried to get both accuracy as well as speed from these figures. As an example: http://keithbriggs.info/mpfs.html[^]

So it seems it's something which just always needs to be chosen on a per-problem basis. Similar to the speed-vs-memory trade-off of using BST / HashTable.
NewsMalaysian Airlines have lost another plane Pin
chriselst17-Jul-14 6:11
professionalchriselst17-Jul-14 6:11 
GeneralRe: Malaysian Airlines have lost another plane Pin
OriginalGriff17-Jul-14 6:17
mveOriginalGriff17-Jul-14 6:17 
GeneralRe: Malaysian Airlines have lost another plane Pin
P0mpeyBoy17-Jul-14 6:35
P0mpeyBoy17-Jul-14 6:35 
GeneralRe: Malaysian Airlines have lost another plane Pin
Maximilien17-Jul-14 7:43
Maximilien17-Jul-14 7:43 
GeneralRe: Malaysian Airlines have lost another plane Pin
Chris Losinger17-Jul-14 6:49
professionalChris Losinger17-Jul-14 6:49 
GeneralRe: Malaysian Airlines have lost another plane Pin
chriselst17-Jul-14 7:39
professionalchriselst17-Jul-14 7:39 
GeneralRe: Malaysian Airlines have lost another plane Pin
JimmyRopes17-Jul-14 7:57
professionalJimmyRopes17-Jul-14 7:57 
GeneralRe: Malaysian Airlines have lost another plane Pin
harold aptroot17-Jul-14 8:33
harold aptroot17-Jul-14 8:33 
GeneralRe: Malaysian Airlines have lost another plane Pin
#realJSOP17-Jul-14 8:58
mve#realJSOP17-Jul-14 8:58 
GeneralRe: Malaysian Airlines have lost another plane Pin
Marc Clifton17-Jul-14 9:00
mvaMarc Clifton17-Jul-14 9:00 
GeneralRe: Malaysian Airlines have lost another plane Pin
JimmyRopes17-Jul-14 17:59
professionalJimmyRopes17-Jul-14 17:59 
GeneralRe: Malaysian Airlines have lost another plane Pin
greldak17-Jul-14 22:20
greldak17-Jul-14 22:20 
GeneralRe: Malaysian Airlines have lost another plane Pin
Dexterus17-Jul-14 23:01
Dexterus17-Jul-14 23:01 
GeneralRe: Malaysian Airlines have lost another plane Pin
glennPattonWork318-Jul-14 0:18
professionalglennPattonWork318-Jul-14 0:18 
GeneralRe: Malaysian Airlines have lost another plane Pin
JimmyRopes18-Jul-14 1:23
professionalJimmyRopes18-Jul-14 1:23 
GeneralRe: Malaysian Airlines have lost another plane Pin
glennPattonWork318-Jul-14 2:00
professionalglennPattonWork318-Jul-14 2:00 
GeneralRe: Malaysian Airlines have lost another plane Pin
JimmyRopes18-Jul-14 2:44
professionalJimmyRopes18-Jul-14 2:44 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.