Csound decimal point precision
Date | 1997-02-14 16:34 |
From | Gregory Boduch |
Subject | Csound decimal point precision |
Hello, I'm reposting my question again: is there a way to perform calculations involving more than 3 decimal places or exponential notation in an orchestra file? Csound seems to ignore decimal places after 3. If I define a constant such as 0.0000000001 it seems to think it's 0.000 . I'm trying to code a sones-to-dB conversion formula in an insturment. It involves 10^-12. Thanks. Gregory Boduch gb141@columbia.edu |
Date | 1997-02-14 17:44 |
From | Mike Berry |
Subject | Re: Csound decimal point precision |
One way to do it is calculate 1/100000000000 in your orchestra. The precision issue is at the translation from text to float, not internally (I think). Very large numbers should work fine. Mike Berry mikeb@mills.edu |