since FreeBASIC used the float versions of math functions ?

General FreeBASIC programming questions.
D.J.Peters
Posts: 7667
Joined: May 28, 2005 3:28

since FreeBASIC used the float versions of math functions ?

Postby D.J.Peters » Dec 24, 2018 14:07

In the past (so far I know) FreeBASIC converted math terms or arguments from any integer type or single to double
and then called cos(), sin(), exp(), log() etc .. from C - runtime.

Now if the term or argument are single it used the float version cosf(), sinf(), logf() expf() instead.

I saw it here: viewtopic.php?f=14&p=256347#p256347

Is it hard coded in the BASIC to C emitter or selected by GCC automatically ?

Joshy

Return to “General”

Who is online

Users browsing this forum: Google [Bot], Majestic-12 [Bot] and 3 guests