Notice the mathematic priority! It's NOT going to do something like ( 1 + 2 ) / 3 but it does 1 + ( 2 / 3 ). However, it will not start with typing a float as it still works from left to right. The next sample clearly proves that. Notice the different variable outputs...
About the expression: you pass a double to cos(), it's logical than cos() returns a double and then the result is done in double mode to have more precision. If you don't want double, just use a float..
These are mostly extrem case and won't happen in 'many people apps'. If it's done like that, it's because there is a reason, we don't plan to change it. Better post this in 'General discussion' as it will be deleted (no bug here).
Fred wrote:About the expression: you pass a double to cos(), it's logical than cos() returns a double and then the result is done in double mode to have more precision. If you don't want double, just use a float..
These are mostly extrem case and won't happen in 'many people apps'. If it's done like that, it's because there is a reason, we don't plan to change it. Better post this in 'General discussion' as it will be deleted (no bug here).
ok. Thanks for that quick answer...I'll have to live with it so I'll do so.
Also, it's probably better to type convert 'up' rather than down (a float times a double will be returned as a double, for example), PB is attempting to do the right thing.
Russell
*** Diapers and politicians need to be changed...for the same reason! ***
*** Make every vote equal: Abolish the Electoral College ***
*** www.au.org ***