Blockland Forums > Modification Help
Tutorial on Str commands (strReplace)
<< < (4/5) > >>
Brian_Smith3:

--- Quote from: Destiny/Zack0Wack0 on April 24, 2011, 01:51:41 AM ---It will not work for decimals.
EDIT: And no, the code I posted will. Yours has errors in it.

--- End quote ---

What mFloatlenght?
MegaScientifical:
It only returns numbers. His check... checks if the string entered is the same as the output of that, confirming or denying if it is numeric.
Destiny/Zack0Wack0:
Truce has told me an easier method:

--- Code: ---function isInt(%n)
{
        return %n $= %n * 1;
}
--- End code ---
MegaScientifical:
Nice... Nice... Sad... But nice...
Brian_Smith3:
There should be a default isInt cmd.
Navigation
Message Index
Next page
Previous page

Go to full version