Hi, I am trying to create some sort of a musical calculator so I am using the unity GUI. The calculations I am using work correctly when I do it manually in a calculator but not when I script them. What am I doing wrong?
E.g.
These work in normal calculators but not the script I am writing.
SecondsToOneBar = (60/Bpm)*BeatsPerBar;
BeatsPerBar = (Bpm/60)*SecondsToOneBar;
However, this works.
Bpm = (60/SecondsToOneBar )*BeatsPerBar;
Thanks