From 70c34906e307a94ec43c9c40c9c39fbd47e38f2f Mon Sep 17 00:00:00 2001 From: Kseninia Mikhaylova Date: Wed, 2 Oct 2024 15:04:12 +0300 Subject: [PATCH] calc --- components/calc/values.vue | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/components/calc/values.vue b/components/calc/values.vue index 2016434..e7910f3 100644 --- a/components/calc/values.vue +++ b/components/calc/values.vue @@ -109,7 +109,10 @@ const changeParametres = () => { } const calc_full_section = () => (full_sections * length) + (full_sections * fence_length) + fence_length let total_length_calc = calc_full_section() - if (Math.round(total_length_mm - total_length_calc) > 0 && Math.round(total_length_mm - total_length_calc) <= fence_length) { + if ( + Math.round(total_length_mm - total_length_calc) > 0 + && Math.round(total_length_mm - total_length_calc) <= fence_length + ) { full_sections -= 1 total_length_calc = calc_full_section() } @@ -183,7 +186,6 @@ const calc_table = computed(() => {