Hy ! ^^
Can someone tell me how to put a value like “0.2” or “5.5” in my script ? When i write them, there is an error in the script.
Is there a special command or a particular symbol to write these fractional numbers ?
Thanks for your answers ^^
Hy ! ^^
Can someone tell me how to put a value like “0.2” or “5.5” in my script ? When i write them, there is an error in the script.
Is there a special command or a particular symbol to write these fractional numbers ?
Thanks for your answers ^^
In C# if the code does not implicitly cast to a float, you’ll need to make them “0.2f” or “5.5f” to indicate a float type instead of a ‘double’ type which is default for decimal numbers.
Thank you very much ! ^^
No problemo. Just a tip for the future, I’m fairly certain that the error message you received would explain this. If you did read the error message and just didn’t understand it, try googling the message in quotes. If that doesn’t help and you decide to ask about it in these forums, make sure to include the error message in your post, along with the code that caused it. It helps massively if the problem isn’t as straightforward as this one. ![]()