I'm trying to determine whether a given string that represents a decimal number is exactly representable as a double. I'd be particularly keen on a javascript solution, but anything is fine (I can port).
I could parseFloat, stringify, then see if that string matches the input string, but I'm wondering if there's a better/faster way to do this. I imagine someone with in depth knowledge of the IEEE floating point standards would have a better way to do this, but that person isn't me.