Hi
Question:
How to use operator “floor” in C# script
floor 5.2 = 5
floor 34.5332= 34
I don’t know how to use that function what should I write?
Hi
Question:
How to use operator “floor” in C# script
floor 5.2 = 5
floor 34.5332= 34
I don’t know how to use that function what should I write?
floor is no operator, its a mathematical function so floor(some number)
y I thought so… But I was searching around before I came here, and then I saw some tutorials on youtube with flooring and there it was announced as an operator there
ok ty
and btw the function is:
Mathf.Floor()
just for you to know… (the correct words for function)
I wrote in Unity’s help “floor” 100000000 times but it said that it doesn’t know what “floor” is, just because of that F!!! Do you know how much irritating is that? that search thing should be fixed, I’m sure that I wouldn’t ask you those silly questions if that search is on better level.
Thats standard.
The naming standard is that all functions and class names start with upper case. the only thing that you will find in lower case are direct variable names, even properties are upper case
But I agree that the search is a large bit crap picky (or became so cause it used to be better in the past with a more “like” alike searching instead of the “==” searching it does now)