How do I transform numerical values?

Long-time Bubble user, BRAND NEW WeWeb user here :slight_smile:

TL;DR - I need to take a decimal value such as β€œ0.10674763847” and format it as β€œ10%”. How can I do this, especially if the numerical value is part of a concatenation string? Seem example below.

I don’t believe there is an automatic way (yet) on WeWeb to convert numbers to currency, percentages, etc like there is Bubble so I know that for the β€œ%” character that will be a simple concatenation after the numerical value. But is there a way to manually adjust the decimal placement? Or to shorten long numerical formats to a more readable format?

I suppose I could just go through Xano and reformat this on that end (maybe that will be the better play anyway to save on resources with the page load) but I was just curious for future scenarios if and how this is possible.

Thanks everyone!

Captura de Tela 2023-05-04 aΜ€s 13.42.42

concatenate(β€œThis is β€œ,round(toNumber(β€œ0.10228”)*100,2),”%”)

1 Like

My man! Looks like I just need to sharpen my Excel skills for this platform :joy:

Thank you so much for the screenshot!

1 Like