literalToFloat is depricated and private so access it via the private to avoid the depricated warning.