Page 1 of 1

NTL High-precision mathematical calculation

Posted: 03 Oct 2021, 23:29
by thqby
NTL is a high-performance, portable C++ library providing data structures and algorithms for manipulating signed, arbitrary length integers, and for vectors, matrices, and polynomials over the integers and over finite fields.

This is the NTL wrapper for evaluating integer and floating-point expressions.

example:

Code: Select all

MsgBox(
	'0.1+0.7*0.3/0.5+0.3=' NTLCalc('0.1+0.7*0.3/0.5+0.3') '(NTL)   ' (0.1 + 0.7 * 0.3 / 0.5 + 0.3) '(ahk)`n'
	'99999999999999999999999911111111111111111111111*11111111111111111111111=' NTLCalc('99999999999999999999999911111111111111111111111*11111111111111111111111')
)
/*
 * 0.1+0.7*0.3/0.5+0.3=0.82(NTL)   0.82000000000000006(ahk)
 * 99999999999999999999999911111111111111111111111*11111111111111111111111=1111111111111111111111099012345679012345679012354320987654320987654321
 */
Github

Re: NTL High-precision mathematical calculation

Posted: 07 Oct 2021, 03:39
by hyaray
:headwall: is this bug? It's 2021 yet...

Re: NTL High-precision mathematical calculation

Posted: 03 Apr 2022, 10:32
by smrt1
This is especially usefull for big numbers.
Thank you ;)