davidoss 550 Posted September 3, 2016 Hi How to cut of numbers after 0.1xxxx in output random [0.3,0.7,1] This return random number for example 0.770459 in this case i need to have 0.7 how to do that? Share this post Link to post Share on other sites
POLPOX 766 Posted September 3, 2016 Use floor, ceil or round. Share this post Link to post Share on other sites
Tankbuster 1733 Posted September 3, 2016 https://community.bistudio.com/wiki/BIS_fnc_cutDecimals Share this post Link to post Share on other sites
R3vo 2652 Posted September 3, 2016 When available on stable use https://community.bistudio.com/wiki/toFixed 2 Share this post Link to post Share on other sites