• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!

[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