Round to the nearest multiplication of 0.75 in C#

by Samuel Fyckes   Last Updated August 13, 2019 17:13 PM

I was wondering how i could round a number to the nearest mult of o.75. The context is that i have a block and i want it's position to be rounded at the nearest 0.75 mult. Ex 0, 0.75, 1.5, 2.25, 3, 3.25, 4.5, 5.25, 6 ... How can I do that ? (c# in unity)



Related Questions


Updated May 13, 2015 12:43 PM

Updated May 18, 2015 06:05 AM

Updated June 05, 2015 23:05 PM

Updated June 07, 2015 11:05 AM

Updated July 02, 2015 15:05 PM