I am trying to format a number that is in the millions so that it is easily readable. My number comes to me as an array with just this one number example for ten million [10000000]
When I am unable to do things that I expect to work with functions I always find it best to put the object into a variable so that I can see what is going on.
here you can see the source JSON
here I am mapping it to my variable
and here you can see my output from mapping the variable
I then try to format the number
{{formatNumber(75.RoundSize; 0; β.β; β,β)}}
because this is an Array I get this error.
if I try:
{{formatNumber(75.RoundSize[1]; 0; β.β; β,β)}}
Then I can get it to work.
How can I write this directly without setting the variable?
If I try
{{formatNumber(map(72.entity.fields; βvalue.data[1]β; βidβ; βfield-2943646β)[1]; 0; β.β; β,β)}}
It will look like this
and I get this error