toDoubleOrNull

Returns content as double only if content can be an exact double or inf/-inf/nan, otherwise null.