algorithmic modeling for Rhino
Just quick question, probably a stupid one, but can't seem to find it...
Is there any way of converting a Number (float) into an Integer (cutting off the decimal part) without any rounding, only using GH components? The way in C# would work:
float a = 2.9;
int b = (int) a; // b becomes 2, not 3
Thanks
Tags:
Oh yeah, didn't see that one. Thanks Danny!
Welcome to
Grasshopper
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by