I'd prefer not to incur another dependency, but `logfloat` appears to be pretty lightweight, and hasn't seen a new release for 4 years so I guess it's pretty stable. I'm always open to improvements.