487
Комментарий:
|
← Версия 3 от 2019-11-30 23:51:56 ⇥
488
|
Удаления помечены так. | Добавления помечены так. |
Строка 14: | Строка 14: |
Spoiler: $$10^n*A/B < 2^31$$ means that you can just take a integer part of it, then divide the result back to $$10^n$$ | Spoiler: $$10^n*A/B < 2^31$$ means that you can just take an integer part of it, then divide the result back to $$10^n$$ |
Input three cardinals — A, B and n. Output double float F that has exact n decimal places of A/B. You need to write a subroutine than accepts double f=A/B in $f12 and integer n in $a0 and returns rounded double F in $f0. Hint: $$10^n*A/B < 2^31$$
123 456 7
0.2697368
Spoiler: $$10^n*A/B < 2^31$$ means that you can just take an integer part of it, then divide the result back to $$10^n$$