# Activation de la fonction d'arrondi avec mathjs

**URL:** <https://community.gladysassistant.com/t/activation-de-la-fonction-darrondi-avec-mathjs/8833>\
**Category:** Demandes livrées\
**Tags:** feature-core\
**Created:** [Avril 15, 2024, 8:16 UTC](https://community.gladysassistant.com/t/activation-de-la-fonction-darrondi-avec-mathjs/8833 "2024-04-15T20:16:17Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![prohand](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/prohand/32/15713_2.png) [@prohand](https://community.gladysassistant.com/u/prohand)\
**Post date:** [Avril 15, 2024, 8:16 UTC](https://community.gladysassistant.com/t/activation-de-la-fonction-darrondi-avec-mathjs/8833/1 "2024-04-15T20:16:18Z")

</div>

Bonsoir,

Suite à cette demande de fonctionnalité : [Dashboard - arrondi des données affichées - #9 par pierre-gilles](https://community.gladysassistant.com/t/dashboard-arrondi-des-donnees-affichees/7941/9)

Il en est ressorti que l’on utilise la mathjs pour effectuer les calculs.  
Du coup cette demande de fonctionnalité est dédié à la mise en place de la fonction de l’arrondi avec mathjs

Bien entendu je ne peux pas voter car j’ai dépassé le quota ^^

Merci 😉

---

<div class="post-metadata">

**Author:** ![pierre-gilles](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pierre-gilles/32/5886_2.png) [@pierre-gilles](https://community.gladysassistant.com/u/pierre-gilles)\
**Post date:** [Avril 19, 2024, 7:02 UTC](https://community.gladysassistant.com/t/activation-de-la-fonction-darrondi-avec-mathjs/8833/2 "2024-04-19T19:02:51Z")

</div>

Salut @prohand, en fait c’est déjà activé j’ai l’impression 🙂

J’ai fais un test en local avec quelques logs :

 ![Screenshot 2024-04-19 at 21.01.51](https://gladys-assistant-community.b-cdn.net/uploads/default/original/2X/0/0049ac15ea3e68ca12378fd390046d32a62cad2c.png)

 ![Screenshot 2024-04-19 at 21.01.55](https://gladys-assistant-community.b-cdn.net/uploads/default/original/2X/7/734c018e09b3f13f75a63ccd468658290c75764b.jpeg)

ça a l’air de marcher !

Tu peux tester et me dire ?

---

<div class="post-metadata">

**Author:** ![prohand](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/prohand/32/15713_2.png) [@prohand](https://community.gladysassistant.com/u/prohand)\
**Post date:** [Avril 21, 2024, 3:03 UTC](https://community.gladysassistant.com/t/activation-de-la-fonction-darrondi-avec-mathjs/8833/3 "2024-04-21T15:03:03Z")

</div>

Merci 🙂  
Je suis en train de tester ceci :

 ![image](https://gladys-assistant-community.b-cdn.net/uploads/default/original/2X/3/3c715454e80ecc1379f116faf616a11f7f4cf16b.png)

Je te tiens au courant du résultat 🙂

---

<div class="post-metadata">

**Author:** ![prohand](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/prohand/32/15713_2.png) [@prohand](https://community.gladysassistant.com/u/prohand)\
**Post date:** [Avril 21, 2024, 4:33 UTC](https://community.gladysassistant.com/t/activation-de-la-fonction-darrondi-avec-mathjs/8833/4 "2024-04-21T16:33:18Z")

</div>

Sa fonctionne, par contre est-ce que l’on peut arrondir à 2 chiffres après la virgule et non sur l’entier le plus proche ? 😉

---

<div class="post-metadata">

**Author:** ![prohand](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/prohand/32/15713_2.png) [@prohand](https://community.gladysassistant.com/u/prohand)\
**Post date:** [Avril 21, 2024, 9:07 UTC](https://community.gladysassistant.com/t/activation-de-la-fonction-darrondi-avec-mathjs/8833/5 "2024-04-21T21:07:54Z")

</div>

J’ai finalement trouvé 🙂 :

 ![image](https://gladys-assistant-community.b-cdn.net/uploads/default/original/2X/e/e85fe083cb92c2b2fc3258d93fca74362a076be0.png)

---

<div class="post-metadata">

**Author:** ![pierre-gilles](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pierre-gilles/32/5886_2.png) [@pierre-gilles](https://community.gladysassistant.com/u/pierre-gilles)\
**Post date:** [Avril 22, 2024, 8:20 UTC](https://community.gladysassistant.com/t/activation-de-la-fonction-darrondi-avec-mathjs/8833/6 "2024-04-22T08:20:47Z")

</div>

> [@prohand](#):
>
> J’ai finalement trouvé 🙂 :

Excellent ! Tout bon du coup ? Tu as fais comment ? 🙂

---

<div class="post-metadata">

**Author:** ![prohand](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/prohand/32/15713_2.png) [@prohand](https://community.gladysassistant.com/u/prohand)\
**Post date:** [Avril 22, 2024, 8:41 UTC](https://community.gladysassistant.com/t/activation-de-la-fonction-darrondi-avec-mathjs/8833/7 "2024-04-22T08:41:06Z")

</div>

Oui tout est ok 🙂  
J’ai mis à jour la copie d’écran 🙂

---

<div class="post-metadata">

**Author:** ![pierre-gilles](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pierre-gilles/32/5886_2.png) [@pierre-gilles](https://community.gladysassistant.com/u/pierre-gilles)\
**Post date:** [Mai 13, 2024, 3:22 UTC](https://community.gladysassistant.com/t/activation-de-la-fonction-darrondi-avec-mathjs/8833/8 "2024-05-13T15:22:59Z")

</div>


