Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

Golang sucks xD

Name: Anonymous 2016-02-14 7:35

The standard library includes a HTTP server but not an arbitrary precision decimal type? What the living fuck?

Name: Anonymous 2016-02-14 7:46

Why would they have a type for a specific base?

Name: Anonymous 2016-02-14 9:14

implying you can't implement it with a variable radix

Name: Anonymous 2016-02-14 10:37

When was the last time you needed that? Are you an accountant or something?

Name: Anonymous 2016-02-14 12:42

JACKSON 5 GET

Name: Anonymous 2016-02-14 13:52

>>4
Literally every serious language has at least one idiomatic way of doing infinite-precision decimals:

C: libgmp
C++: boost::multiprecision
Lisp: builtin
Python: Decimal
Java: java.math.BigDecimal
Ruby: BigDecimal
C#: Decimal
Perl: bignum

The only big language I can think of without easy big decimals is fucking Javascript.

Name: Anonymous 2016-02-14 17:06

math/big

Name: Anonymous 2016-02-14 18:33

>>6
gmp is shit

Name: Anonymous 2016-02-14 19:10

>>6
You forgot Haskell.

Name: Anonymous 2016-02-14 19:22

>>6
Define {serious,big}
Also check your base 10 privilege.

Name: Anonymous 2016-02-14 19:38

Picolisp sucks. It doesn't even have arrays!

Name: Anonymous 2016-02-14 21:17

Go does suck, but if you really want it, you could probably use that naive bignum in Suigin's hebinath thread with about ten minutes of translating it.

Name: Anonymous 2016-02-15 8:05

>>7
nope, that can only do rational numbers at best, which is extremely slow and totally unsuitable

Name: Anonymous 2016-02-15 11:19

>>13
You appear to be blind.
It has Int, Rat and Float.

Don't change these.
Name: Email:
Entire Thread Thread List