HORIZON HASKELLDocslts/ghc-10.0.x8fef28d2026-11-02Search packagesCtrl K
Theme: |

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 8fef28d · 2026-11-02

Modulehosc-0.21.1Haskell2010

Sound.Osc.Coding.Cast

Bit-level type casts and byte layout string typecasts.

Synopsis
  • Packagehosc-0.21.1
  • Exports8
  • LanguageHaskell2010
  • LicenceGPL-3.0-only
  • SourceCast.hs
valuef32_w32 :: Float -> Word32

The IEEE byte representation of a float.

Example1 expression
f32_w32 pi1078530011
Example1 expression
f32_w32 (-7913907.5)3404825447
Example1 expression
23 ^ 73404825447
valuew32_f32 :: Word32 -> Float

Inverse of f32_w32.

Example1 expression
w32_f32 10785300113.1415927
Example1 expression
w32_f32 (23 ^ 7)-7913907.5
valuef64_w64 :: Double -> Word64

The IEEE byte representation of a double.

Example1 expression
f64_w64 pi4614256656552045848
Example1 expression
f64_w64 1.6822072834e-3143404825447
valuew64_f64 :: Word64 -> Double

Inverse of f64_w64.

Example1 expression
w64_f64 46142566565520458483.141592653589793
Example1 expression
w64_f64 (23 ^ 7)1.6822072834e-314