1/x
, смещённый на 1 вправо и вверх:y = 1 / (1-(1/x)) = x / (x - 1) = 1 + 1 / (x - 1)
1/7 = 100/7 (/100) ≈ 0.14
x = 1.14
x - 1 = 0.14
1 / 0.14 = 100 / 14 = 50 / 7
с точностью до 2 знаков считаем целые в 5000 / 7
50 / 7 ≈ 7
... 700 (сотни)
... + 10 / 7 = 710 (десятки)
... + 30 / 7 = 714 (единицы)
итого 7.14
+1 = 8.14
Ответ: 8.14
addressParts.map(str => str.trim());
addressParts.map(Function.prototype.call, String.prototype.trim);
addressParts.map(function(str) { return String.prototype.trim.apply(str); });