Jul 31, 2020
Posted by dsprinzen

There is nothing wrong with the string representation inside the platform.  But I need the resulting JSON object that I am going to plug the number into to not have quotes around it.

So if I did something like this:

var number = toDecimal((randomFloat() * (max – min) + min ), 2)
return {val:number}

I might get back something like

{
“val”: “24.41”
}

If I send it to another service or if I called it via an API externally, I get back a string.`

  • This reply was modified 3 years, 10 months ago by dsprinzen.
  • This reply was modified 3 years, 10 months ago by dsprinzen.
  • This reply was modified 3 years, 10 months ago by dsprinzen.
  • This reply was modified 3 years, 10 months ago by dsprinzen.
© Vantiq 2024 All rights reserved  •  Vantiq Corporation’s Privacy Policy and Cookie Policy