I'm afraid, the generating side is outside my control :( - I am looking at this - https://api.iextrading.com/1.0/stock/aapl/chart/3m In this case, scaling everything does not seem so bad - infact, the solution i was trying was to simply add a ".0" to all the numbers that did not have it.
Also, would it not be okay to say that all the numbers in the JSON (or some other input) are scaled? It's for the user to be aware and deal with it appropriately. On Mon, May 6, 2019 at 6:47 AM Alexander Burger <a...@software-lab.de> wrote: > Hi Kashyap, > > > I still have a question - if my > > program gets its input from two json strings - > > {"V": 10} and {"V" : 10.1}, and I need to sum up all the Vs - how can I > do > > it? > > I think there is no generic solution. It all depends on what the numbers > *mean*. > > We cannot simply scale up every number in the Json text. If for example the > first "10" is a count, we do not want to multiply it with the scale. > > Can't you make sure on the Json *generating* side that fixpoint numbers are > produced with a dot? > > ☺/ A!ex > > -- > UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe >