Does unitful break the Float64 constructor?

So I was running into an issue with a stack overflow error in JSON3, and in looking into it I discovered

using Unitful: m
Float64(10m) 

yields 10m

In short, this means

Float64(x) isa Float64

doesn’t always hold.

Is this ok? is this an issue with Unitful ?

It’s not great but it probably makes a lot more code work with unitful than would otherwise.

1 Like