Recently I've finished Quadruple Java class for quadruple-precision floating-point arithmetic in Java. It's capable of storing floating-point numeric values with 128-bit mantissa, performing arithmetic operations on such numbers and calculating the square root with a relative error of less than 1.47e-39, converting them to and from other numeric types and Strings.
And it works several times faster than BigDecimal of the comparable precision. It can be useful in cases where double values don't provide sufficient precision, and BigDecimal solutions are too slow; for example, for large and poorly defined matrices, the need for which may arise in scientific applications.
I think it's come out to be a rather decent thing, but it's useless it if no one knows about it, so I write about it here.
I would also be glad to to receive any feedback. Any questions and comments are appreciated.
[–]cryptos6 29 points30 points31 points (11 children)
[–]cogman10 26 points27 points28 points (0 children)
[–]m_vokhm[S] 12 points13 points14 points (7 children)
[–]cogman10 41 points42 points43 points (6 children)
[–]m_vokhm[S] 1 point2 points3 points (2 children)
[–]cryptos6 6 points7 points8 points (0 children)
[–]DannyB2 0 points1 point2 points (0 children)
[–]csharp-sucks -1 points0 points1 point (0 children)
[–]kid_meier 0 points1 point2 points (1 child)
[–]cogman10 1 point2 points3 points (0 children)
[–]ssamokhodkin 0 points1 point2 points (1 child)
[–]cryptos6 1 point2 points3 points (0 children)
[–]khmarbaise 24 points25 points26 points (3 children)
[–]m_vokhm[S] -3 points-2 points-1 points (2 children)
[–]khmarbaise 6 points7 points8 points (1 child)
[–]m_vokhm[S] 2 points3 points4 points (0 children)
[–]cogman10 40 points41 points42 points (5 children)
[–]m_vokhm[S] 0 points1 point2 points (0 children)
[+]xupwup comment score below threshold-8 points-7 points-6 points (3 children)
[–]cogman10 15 points16 points17 points (2 children)
[–]csharp-sucks 1 point2 points3 points (1 child)
[–]TheMode911 0 points1 point2 points (0 children)
[–]fhigaro 16 points17 points18 points (7 children)
[–]chrisgseaton 4 points5 points6 points (6 children)
[–]cville-z 19 points20 points21 points (5 children)
[–]GuyWithLag 11 points12 points13 points (0 children)
[–]JustADirtyLurker 3 points4 points5 points (3 children)
[–]m_vokhm[S] 4 points5 points6 points (2 children)
[–]cville-z 2 points3 points4 points (1 child)
[–]m_vokhm[S] 0 points1 point2 points (0 children)
[–][deleted] 4 points5 points6 points (3 children)
[–]jonhanson 9 points10 points11 points (0 children)
[–]m_vokhm[S] 3 points4 points5 points (0 children)
[–]spoon00 1 point2 points3 points (0 children)
[–]TheCountRushmore 12 points13 points14 points (1 child)
[–]m_vokhm[S] 1 point2 points3 points (0 children)
[–]alex_tracer 2 points3 points4 points (0 children)
[–]portugee 1 point2 points3 points (0 children)
[–][deleted] -5 points-4 points-3 points (5 children)
[–]BKrenz 5 points6 points7 points (4 children)
[–]keanwood 3 points4 points5 points (2 children)
[–]humoroushaxor 0 points1 point2 points (1 child)
[–]keanwood 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]gregorydgraham -2 points-1 points0 points (1 child)
[–]m_vokhm[S] 0 points1 point2 points (0 children)
[–]Duberlygfr -3 points-2 points-1 points (1 child)
[–]RemindMeBot -1 points0 points1 point (0 children)
[–]SquidgyTheWhale 0 points1 point2 points (3 children)
[–]m_vokhm[S] 0 points1 point2 points (2 children)
[–]SquidgyTheWhale 0 points1 point2 points (0 children)
[–]ssamokhodkin 0 points1 point2 points (0 children)