How do I convert a decimal number smaller than 1.0 to hex float?

CosmoCortney

i snack raw pasta and chew lollipops
OP
Member
Joined
Apr 18, 2013
Messages
1,768
Trophies
2
Location
on the cool side of the pillow
Website
follow-the-white-rabbit.wtf
XP
3,017
Country
Germany
  • Like
Reactions: daxtsu

daxtsu

Well-Known Member
Member
Joined
Jun 9, 2007
Messages
5,627
Trophies
2
XP
5,194
Country
Antarctica
No problem. This assumes of course that the platform you're working with (Wii U? Just a guess) uses standard floats. If you require something for a weird platform like the PS2 which does not use standard floats, then you may need to search further or specify which one.
 

CosmoCortney

i snack raw pasta and chew lollipops
OP
Member
Joined
Apr 18, 2013
Messages
1,768
Trophies
2
Location
on the cool side of the pillow
Website
follow-the-white-rabbit.wtf
XP
3,017
Country
Germany
No problem. This assumes of course that the platform you're working with (Wii U? Just a guess) uses standard floats. If you require something for a weird platform like the PS2 which does not use standard floats, then you may need to search further or specify which one.
the info given at the example of -0.5 is sufficient enough for me to understand how to convert a decimal number to any kind of IEEE floats :)
 
  • Like
Reactions: daxtsu

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
    SylverReZ @ SylverReZ: @Jayro, No, works fine.