gi-glib-2.0.22: GLib bindings

CopyrightWill Thompson Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria (inaki@blueleaf.cc)
Safe HaskellNone
LanguageHaskell2010

GI.GLib.Unions.FloatIEEE754

Contents

Description

The FloatIEEE754 and DoubleIEEE754 unions are used to access the sign, mantissa and exponent of IEEE floats and doubles. These unions are defined as appropriate for a given platform. IEEE floats and doubles are supported (used for storage) by at least Intel, PPC and Sparc.

Synopsis

Exported types

newZeroFloatIEEE754 :: MonadIO m => m FloatIEEE754 Source #

Construct a FloatIEEE754 struct initialized to zero.

Properties

vFloat

the double value

getFloatIEEE754VFloat :: MonadIO m => FloatIEEE754 -> m Float Source #

Get the value of the “v_float” field. When overloading is enabled, this is equivalent to

get floatIEEE754 #vFloat

setFloatIEEE754VFloat :: MonadIO m => FloatIEEE754 -> Float -> m () Source #

Set the value of the “v_float” field. When overloading is enabled, this is equivalent to

set floatIEEE754 [ #vFloat := value ]