#floatingPoint

2025-06-21

Why did IEEE specify sqrt(-0) to be -0?! That's … surprising when applied to the interpretation of -0 in the context of complex numbers:
sqrt(complex{-0,+0}) is complex{+0,+0}.
And also pow(-0, 0.5) is +0.
If anything sqrt(-0) should be NaN, but why -0?

#floatingpoint #iec60559 #ieee754 #CPlusPlus #C #cpp

N-gated Hacker Newsngate
2025-06-19

🚨 Hold onto your slide rules, nerds! A 2019 post reveals the "magic" of floating point numbers, promising more excitement than a math lecture on a rainy Wednesday. πŸ§™β€β™‚οΈβœ¨ Spoiler alert: the "tricks" are as thrilling as watching paint dry, but at least you won't sprain anything. πŸ˜‚
marc-b-reynolds.github.io/math

2025-06-02

and for the #IEEE754 / #floatingpoint nerds (you know who you are!) here's a much more definitive answer/breakdown of our IEEE Binary FP32 conformance for the Vector Unit! github.com/tenstorrent/tt-isa-

#RVV #SIMD #HPC

Vassil Nikolovvnikolov@ieji.de
2025-05-26

@screwlisp

P.S. See also
(rational 0.1d0)
(rationalize 0.1d0)
etc.
And `integer-decode-float' is worth its weight in gold when trying to find the _exact_ value of a floating-point number.

#CommonLisp
#FloatingPoint

N-gated Hacker Newsngate
2025-05-07

πŸš€ Ah, the noble "perfect" random floating-point numbers, yet somehow it reads like a 16-minute sleep-inducing lullaby about dividing by zero. πŸ€” Who knew the real challenge was turning integers into fractions without losing brain cells in the process? πŸ™ƒ
specbranch.com/posts/fp-rand/

2025-05-07
R.L. Dane :Debian: :OpenBSD: 🍡 :MiraLovesYou:rl_dane@polymaths.social
2025-04-23

#Bash's printf supports %f, but bash itself doesn't support #FloatingPoint math...

#ThingsThatMakeYouGoHmm

2025-04-09

Given

float max = numeric_limits<float>::max();
float x = max * max - max * max;

What is the value of x?

#cpp #CPlusPlus #floatingpoint

2025-04-04

So, as a follow-up to signed zeros in complex numbers: Consider a+b, a-b, 1/a+1/b, 1/a-1/b where a and b are 0. or -0. Some obvious ones:
0. + 0. -> 0.
1/0. + 1/0. -> inf
1/0. + 1/-0. -> NaN
-0. - 0. -> -0.
But what is 0. + -0. and 0. - 0.?

#C #CPlusPlus #cpp #floatingpoint

2025-02-11

FWIW: There's a freely available 2023 paper that's basically "Cliff notes" of the book "Handbook of Floating-point Arithmetic"

hal.science/hal-04095151v1

#FloatingPoint

2025-02-08

Another #FloatingPoint refinement of pair arithmetic. This time on the so-called "sloppy add"

arxiv.org/abs/2404.05948

AFAIK: The latest refinement of the accurate building blocks are in this:

hal.science/hal-02972245

And there's also weakened constraint versions by Rump & Lang

tuhh.de/ti3/paper/rump/LaRu201

davinov πŸ‘¨β€πŸ’»πŸ³οΈβ€πŸŒˆdavinov@mamot.fr
2025-02-02

TC39: Decimal: 0.1+0.2===0.3
"Yeahhhh, I don't need to explain much about this proposal"
πŸ˜‚
#JavaScript #FOSDEM #FloatingPoint

2025-01-25

A couple of #FloatingPoint papers that I caught my eye for future reading:

1) A tightening of FastTwoSum knowledge
2) Attempting to generate approximations which account for runtime evaluation errors (with source that implements an external proc for Sollya)

1) hal.science/hal-04875749v1
2) hal.science/hal-04709615v1

Alanna πŸ³οΈβ€πŸŒˆπŸ³οΈβ€βš§οΈkelpana@mastodon.ie
2025-01-08

JFC please don't use floating point types for calculating financial transactions or storing monetary values. I just got asked to review some code by someone and it is the first thing I spotted.

#roundingerrors #floatingpoint #softwareengineering

2024-12-27

Catastrophe... this could have been me, the many times I wrote 3.14159265458 as the "precision" value f #PI 😁

#FloatingPoint #Precision #3.14

2024-12-12

Sertifioitu IEEE 754 -hetki Ilmatieteen laitoksella.

#IEEE754 #FloatingPoint #ohjelmointi

SademÀÀrÀ: 1.70000000000000002 mm.

Client Info

Server: https://mastodon.social
Version: 2025.04
Repository: https://github.com/cyevgeniy/lmst