Jump to content

[LE] Does Math Operators (especially division) work for Floats?


Recommended Posts

In a nutshell, yes they should work. You may get mixed results if mixing integers with floats while doing your calculations. Best to stick with one or the other. You can always cast a float to an integer after the math is complete (or use Floor and Ceiling to "round" down or up).

Link to comment
Share on other sites

As the title says. I'm trying to use math operators for some float variables and wondering whether they'll work or not.

 

papyrus works like most programing languages, with division, multiplication, int, floats, doubles, etc, so check what happens Python or C#, (there is so much documentation explaining this, and what will happen, when mixing it up. So you will never get an unexpected result this way.

 

https://wiki.python.org/moin/BeginnersGuide/Mathematics

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...