Page 5 of 5

Re: another (different) rounding problem

PostPosted: Fri Apr 13, 2018 5:17 pm
by ROCLASI
:shock: :shock: :shock: :shock:
omg, omg, OMG, OMG!
MUST.....HAVE... ;)

Re: another (different) rounding problem

PostPosted: Mon Apr 16, 2018 10:41 am
by jcompagner
Code: Select all
function rn(v,p){return Math.round((v+(v<0?-1e-8:1e-8))*Math.pow(10,p))/Math.pow(10,p)}

Re: another (different) rounding problem

PostPosted: Mon Apr 16, 2018 11:42 am
by ROCLASI
:lol:
What's next? Zip it into a .jar?

Re: another (different) rounding problem

PostPosted: Tue May 01, 2018 4:37 pm
by jcompagner
phh are they adding something related to numbers in javascript:

https://developers.google.com/web/updat ... /05/bigint

isn't it fixing the problem most people have (the rounding of after the decimal point...)

Re: another (different) rounding problem

PostPosted: Sat May 05, 2018 8:11 pm
by Harjo
And when can we expect this in Servoy?

Re: another (different) rounding problem

PostPosted: Mon May 07, 2018 10:13 am
by jcompagner
only when rhino would implement this
But who here really needs that big int? Who has "rounding" issues with really big integers (not floating points!)