F
Francis Moreau
Hello,
I have never needed to use the floating types until recently (yeah,
embedded system background mostly). And when I really had to use it,
fixed point numbers were actually used.
So now, I'd like to learn when 'double' should be used instead of
'float' for example. I know the answer is precision, but I'd like to be
able for a given application to calculate the accumulated error and to
deduce from it the best floating type to use.
BTW, what the 'cost' of the usage of 'double' over 'float' on
architecture without a floating point unit ? IOW does it really worth to
wonder such questions or can I simply always use 'double' type ?
Could anybody provide some usefull pointers ?
Thanks
I have never needed to use the floating types until recently (yeah,
embedded system background mostly). And when I really had to use it,
fixed point numbers were actually used.
So now, I'd like to learn when 'double' should be used instead of
'float' for example. I know the answer is precision, but I'd like to be
able for a given application to calculate the accumulated error and to
deduce from it the best floating type to use.
BTW, what the 'cost' of the usage of 'double' over 'float' on
architecture without a floating point unit ? IOW does it really worth to
wonder such questions or can I simply always use 'double' type ?
Could anybody provide some usefull pointers ?
Thanks