qwertypol012 Posted January 12, 2019 Share Posted January 12, 2019 As the title says. I'm trying to use math operators for some float variables and wondering whether they'll work or not. Link to comment Share on other sites More sharing options...
IsharaMeradin Posted January 12, 2019 Share Posted January 12, 2019 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 More sharing options...
PeterMartyr Posted January 13, 2019 Share Posted January 13, 2019 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 More sharing options...
qwertypol012 Posted January 13, 2019 Author Share Posted January 13, 2019 @IsharaMeradin Thanks for the answer. I've done the codes and will check how it works. :smile:@PeterMartyr That's a lot of sources! Thanks for your concern :laugh: Link to comment Share on other sites More sharing options...
Recommended Posts