Rounding and Float to Integer Errors (Solved)

For general discussion related FlowStone
Post Reply
boris
Posts: 2
Joined: Wed Jul 28, 2010 11:31 pm

Rounding and Float to Integer Errors (Solved)

Post by boris »

There appears to be a rounding error were a conversion from a float calculation that results is a whole number is then connected to an integer data element. The result of the float multiply is display as a whole number - which I believe is rounded up - but results in a different integer value.

Attached is the schematic that seems to not make sense other than it being a bug.

I think we need a rounding primitive to be able to control results.
Attachments
IntegerBug.fsm
Simple schematic
(258 Bytes) Downloaded 1542 times
Last edited by boris on Mon Nov 15, 2010 11:11 pm, edited 1 time in total.
Exo
Posts: 426
Joined: Wed Aug 04, 2010 8:58 pm
Location: UK
Contact:

Re: Rounding and Float to Integer Errors

Post by Exo »

Hey and welcome boris :)

This is not a bug. The float is rounded up for display purposes only, the underlying float is unchanged.

If you go into options under "Advanced" there is an option to turn "display floats as 32bit binary representations" on.

Switch that option on for the true value.

Cheers ;)

Exo
Flowstone Guru. Blog and download site for Flowstone.
Best VST Plugins. Initial Audio.
boris
Posts: 2
Joined: Wed Jul 28, 2010 11:31 pm

Re: Rounding and Float to Integer Errors

Post by boris »

Ok Thanks
Post Reply