Data.ByteString.Nums.Careless.Float

bytestring-nums-0.3.2: Parse numeric literals from ByteStrings.

Data.ByteString.Nums.Careless.Float

Synopsis

- class (Intable b f, Fractional f) => Floatable b f where
  - float :: b -> f

# Documentation

class (Intable b f, Fractional f) => Floatable b f where

Types that can be read from floating point strings. A floating point string is taken to be a string of digits with up to one comma or period mixed in with the digits.

Methods

float :: b -> f

Instances

Floatable ByteString Double |
Floatable ByteString Float |
Floatable ByteString Rational |
Floatable ByteString Double |
Floatable ByteString Float |
Floatable ByteString Rational |