- Home /
Why 2.5 % 2 = 2.5?
I don't have a lot to say about it, I'm trying to get the module between 2.5 and 2 and C# returns 2.5, instead of 0.5.
The reason I'm doing that is because I have a value and I want to make it a multiple of another value, using the module.
Can you show the code you use? I just tried it and it returned 0.5
Sorry, but I've already fixed it and removed the old code. Thank you anyways!
Answer by Bill9009 · Jun 10, 2017 at 07:37 PM
Can I see your code because when I run 2.5 % 2 it returns 0.5 no problem on a console app.
Sorry, but I've already fixed it and removed the old code. Thank you anyways!
Your answer
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
Distribute terrain in zones 3 Answers
Why is my ID value getting stuck here? 1 Answer
Problem with Clamping Values for Object's Rotation 1 Answer
How can I make this object relative to the players position? 2 Answers