treeviz-2.0.2: Visualization of computation decomposition trees.

CopyrightCopyright (c) 2013 David Banas; all rights reserved World wide.
LicenseBSD3
Maintainercapn.freako@gmail.com
StabilityDevelopment
Portability
Safe HaskellNone
LanguageHaskell98

Data.Newtypes.PrettyDouble

Description

 

Synopsis

Documentation

newtype PrettyDouble Source

A custom double precision floating point type, which overides the Show and Eq instances, in order to:

  • Limit precision to 3 places after the decimal.
  • Print ridiculously small numbers as simply zero.
  • Define equality as difference being less than some threshold.

Constructors

PrettyDouble 

Fields

uglyDouble :: Double