News for hackers. Stuff that matters.
Re:COBOL: You’re thinking about it wrong – GCN by cratermoon on Saturday March 04, 2023 @01:23PM (#35023083)
Which of the top 10 languages from the Tiobe index have a decimal type baked^* into the language?

* Is a type in the standard library "baked in"? I lean towards no, but I'll give the language A for effort anyway.

Re:COBOL: You’re thinking about it wrong – GCN by AndrewDucker on Sunday March 05, 2023 @06:02PM (#35035170)

  1) Python - added to the standard library in 2003.
  2) C - no.
  3) Java - BigDecimal in the standard library.
  4) C++ - no.
  5) C# - built in.
  6) VB - Currency type kinda does what you'd want, but   doesn't scale down very far.
  7) Javascript - no.  (Use https://github.com/MikeMcl/bignumber.js)
  8) SQL - Yes.  But check your dialect.
  9) PHP - No.
  10) Go - No.  (Use https://pkg.go.dev/github.com/shopspring/decimal)