Gamestudio Links
Zorro Links
Newest Posts
ZorroGPT
by TipmyPip. 03/06/26 07:18
zorro with ccxt?
by opm. 03/03/26 03:17
WFO Training with parallel cores Zorro64
by Martin_HH. 02/26/26 16:03
Zorro version 3.0 prerelease!
by TipmyPip. 02/25/26 16:38
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
1 registered members (TipmyPip), 5,052 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
the1, alx, ApprenticeInMuc, PatrickH90, USER0328
19200 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Something wrong with assignment of float?? #228892
09/23/08 11:35
09/23/08 11:35
Joined: Nov 2007
Posts: 37
L
LavenderSs Offline OP
Newbie
LavenderSs  Offline OP
Newbie
L

Joined: Nov 2007
Posts: 37
Hi, guys!
Here is a little issue for Lite-C. How to assign a floating point number to the 'float' variable? For instance:

float i = 100 / 80 + 100 % 80; //just let i be 1.25

But I see that the result in debug window is 1 rather than 1.25. Do anyone know what's wrong with it??

Re: Something wrong with assignment of float?? [Re: LavenderSs] #228908
09/23/08 13:04
09/23/08 13:04
Joined: Feb 2008
Posts: 3,232
Australia
EvilSOB Offline
Expert
EvilSOB  Offline
Expert

Joined: Feb 2008
Posts: 3,232
Australia
A lot of the numbers being diplayed in the the
debug panel have there decimal fractions trimmed off
for ease reading of display.
The numbers do have a float content but only the
integer portion is displayed.
ie pan = '12.34567' is displayed as '12'.

What variable is you float getting put into and I'll check
this is the case with that variable.


"There is no fate but what WE make." - CEO Cyberdyne Systems Corp.
A8.30.5 Commercial

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1