Re: [LAU] Need some programming help.

From: Will Godfrey <willgodfrey@email-addr-hidden>
Date: Thu Nov 21 2013 - 21:22:31 EET

On Tue, 19 Nov 2013 12:58:29 +0100
Tito Latini <tito.01beta@email-addr-hidden> wrote:

> You could try the follow command
>
> cc -o precision_test -lm precision_test.c

Thank you both for your suggestions. I tried that bit of code, but as I rather
expected it behaved perfectly.

The problem seems to be that, for some reason FLTKs 'step' command is being
ignored. Not only is it failing to round the values but it is also failing to
truncate them. I even tried replacing the calculated value with a simple
integer - loads of trailing zeros after the decimal point.

Yoshi is derived from Zyn, and the section of code that sends values to FLTK
for display is identical, yet Zyn doesn't show this problem. I can only guess
there is some difference in the way yoshi links to FLTK but can't imagine what
it is!

-- 
Will J Godfrey
http://www.musically.me.uk
Say you have a poem and I have a tune.
Exchange them and we can both have a poem, a tune, and a song.
_______________________________________________
Linux-audio-user mailing list
Linux-audio-user@email-addr-hidden
http://lists.linuxaudio.org/listinfo/linux-audio-user
Received on Fri Nov 22 00:15:01 2013

This archive was generated by hypermail 2.1.8 : Fri Nov 22 2013 - 00:15:01 EET