M
M
Misha_Unity2021-07-31 10:37:31
C++ / C#
Misha_Unity, 2021-07-31 10:37:31

I have a variable, I need to round it up to the nearest multiple of 0.87. How to do it?

If the variable is 1, then after rounding it should be 0.87, if 1.9 then 1.74

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir, 2021-07-31
@Misha_Unity

Divide the number by 0.87, take an integer from the result and multiply 0.87 by this integer

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question