Richard wrote:In the end you will find that the answer to your problems was “Print Using”.
I see that you are all thinking the same, guys :)
As you are surely better programmers than I (I do that only from time to time as a hobby, thought I began on an Atari XL years ago :), I will recode my program once again, and try to avoid any call to FRAC.BI, relying only on FreeBASIC calculations, than reformatting the output with FORMAT "#.##########" and cutting all ending zeroes with a MID(x,y,z) command...
More I work on that issue, better I see that the problem is deeper and deeper...
Zamaster wrote:You could always set a fraction, and then use Real to Frac to make "1" a fraction. then add and output the answer.
The problem is not here, as I do calculation only on FRACTION type numbers now. Anyway, if I try to do something like "x = y AS FRACTION + z AS DOUBLE", the compiler tells me "type mismatch".
Nevermind. I will probably give up with FRAC.BI, and try to use only PRINT USING, as the whole forum is suggesting me :-)