Help with firebase

I need to save in the same format as javascript saves in firebase, I can’t format the value
that kodular saves in firebase
“” 60 \ “” no
60 yes

the kodular needs to save 60 exactly

Any idea?

1

if you get the value from taxa, what is printed on your output with javascript?

var taxa = “3”;
var tx = taxa.replace(/"/g, ``); //retorna 3
var res = (tx+0).toFixed(2); //error //theory 3.00

in a function of google function returns error

try with

var res = parseFloat(tx).toFixed(2);

2 Likes

thanks for your time and help,

it worked correctly

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.