#Math issue

1 messages · Page 1 of 1 (latest)

simple crane
#

Hi, I came across this error in Appsmith.
(Self Hosted - 1.62)

I need to develop an app that does math (sums, multiplications, percentages, etc.). However, in a basic calculation, it does it wrong. See the example print.

I'm using {{Value1.value + Value2.value}} in the subtotal and {{Subtotal.value + Value3.value}} in the total.

When typing, the input only accepts commas. However, in the sum, it shows a period as the decimal separator, instead of a comma.

The fields are currency type (BRL).
Am I doing something wrong or is it a problem in Appsmith?

high needleBOT
#

{?{ (Value1.value.replace(",", ".") + Value2.value.replace(",", ".")).replace(".", ",") }?}

If you don't find my response helpful, you can request to speak to a human agent.

simple crane
#

Hi. I've updated today (latest), and the issue persists! Nothing has changed

high needleBOT
#

Someone from our team will reach out to you on this thread. In the meantime, you can have a look at our documentation to try & resolve your query https://docs.appsmith.com?utm=bot

Organizations build internal applications such as dashboards, database GUIs, admin panels, approval apps, customer support tools, etc. to help improve their business operations. Appsmith is an open-source developer tool that enables the rapid development of these applications. You can drag and drop pre-built widgets to build UI. Connect securely...

high needleBOT
#

Hello! This issue is happening because currently, the thousand separator and decimal separator characters are inferred from the locale. But we have this feature request: https://github.com/appsmithorg/appsmith/issues/15258. Please add a comment with your use case to help us prioritize it.

GitHub

Platform to build admin panels, internal tools, and dashboards. Integrates with 25+ databases and any API. - Issues · appsmithorg/appsmith

simple crane
#

Hi. It's done!