I am trying to round up the right hand side (fractional part) of a float.
I want to round it up to 5
x = 0.43
expected outcome
0.45
I can convert the float into an int and then split the string by "." and then round the right hand side of the decimal point but I dont think this is the best method available.
Is there a function available for this type of task?
Thanks