kat35601 Posted July 17, 2017 Share Posted July 17, 2017 the numbers when done should only have two decimal places and not round and remove the . (decimal point) 10.2345 174890.235 105713.12 would be 1023 17489023 10571312 Link to comment Share on other sites More sharing options...
ginerjm Posted July 17, 2017 Share Posted July 17, 2017 Are these actually number types? Have you looked up number_format in the PHP manual? Link to comment Share on other sites More sharing options...
kat35601 Posted July 17, 2017 Author Share Posted July 17, 2017 Yes these are actual numbers and I tried number format but it rounds Link to comment Share on other sites More sharing options...
Sepodati Posted July 17, 2017 Share Posted July 17, 2017 Sounds like you just want the floor() of the number * 100. Kind of raises the question of why you'd do this to floating point numbers, though... Link to comment Share on other sites More sharing options...
kat35601 Posted July 17, 2017 Author Share Posted July 17, 2017 Yes that works Float after number * 100 thanks Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.