• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[Solved] Check if a real variable is integer(.0000) or real.

Status
Not open for further replies.
Level 20
Joined
Dec 18, 2010
Messages
222
Aye I'll try it out.

Edit:
It gives me an error at 'is' for

value is "integer"

Edit 2:
Never mind, found a way for it.
By converting the real to integer using the weird bug, for example 15.5 would turn into 15.
Then taking (15.5 - 15) and check if the answer is 0. If it's not 0, it's a real number.



Edit 3:
Oh wait, that's what you did....opps
Couldn't understand it at first because I thought the part where "value -" meant "value :"
Stupid me XD

Edit 4:
Okay how do u rep others?

Edit 5:
Found it!
 
Last edited:
Status
Not open for further replies.
Top