Mmm... just thinking out loud... JSON does not allow absolute precision numbers, so there is no native way to pass the equivalent of a BigDecimal. The alternatives are: - keep sending a number and lose precision - pass the value as a string, but it will make it harder to manipulate it on the client and won't help when you convert it to a number in js. Moreover, it will break backward compatibility in OrientDB, so I don't know if I can do it...
Thanks Luigi 2018-05-07 12:45 GMT+02:00 Luigi Dell'Aquila <[email protected]>: > Hi Peter, > > I just did a quick test, the problem is only on the REST/JSON layer. > If you do the queries from console (or from a binary driver) you'll see > that the results are correct and the numbers are not rounded. > Could you please open an issue here https://github.com/ > orientechnologies/orientdb/issues > I'll try to fix it asap > > Thanks > > Luigi > > > 2018-05-07 12:09 GMT+02:00 <[email protected]>: > >> Hi Luigi, >> Thank you for replying so quickly. >> >> I've tried it from the studio through the tab Schema -> Vertex Classes -> >> New Record dialog. >> >> It also happens if I do the following from the Studio SQL console: >> INSERT INTO bigvertex (bigvalue) >> VALUES (DECIMAL("9223372036854775807")) >> >> I would like to use OrientDB to store edges with an attribute describing >> amounts - big numbers up to 80 digits, and be able to do calculations like >> SUM or AVG on them. >> I was hoping OrientDB is the right tool, maybe I'm just doing something >> wrong? >> >> Cheers, >> Peter >> >> -- >> >> --- >> You received this message because you are subscribed to the Google Groups >> "OrientDB" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected]. >> For more options, visit https://groups.google.com/d/optout. >> > > -- --- You received this message because you are subscribed to the Google Groups "OrientDB" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
