Started by Breadcaster, July 03, 2016, 04:43:37 PM
0 Members and 1 Guest are viewing this topic.
Quote from: Breadcaster on July 05, 2016, 04:55:36 PM@SplinterGU I didn't realise BennuGD supported floats, haha. Though when I try to run the code that I posted with floats instead of ints, it's the same result - private float myfloat=0; *blablabla*myfloat=50/300;myfloat comes out as 0, when writing it to screen :/ I don't understand why.However, I've found a solution to this issue now thanks to Mike Green on the Div-Arena forums who suggested just multiplying everything up and then dividing it down when calculating the final result, which has worked brilliantly :) But I've given you some karma all the same, Butcher, for letting me know about floats!! :D