Wiki

Clone wiki

DWScript / Float

  1. summary Float (base type)

Float

Double precision floating point value

Description

Presence of a dot '.' differentiates literals from an [Integer].

Normal notation: 45.2304

Exponential notation: 1.256e23

Methods

Conversions

  • ToString

Trigonometry functions

  • Cos, Sin, Tan
  • ArcCos, ArcSin, ArcTan
  • Cotan
  • ArcTan2
  • Hypot
  • DegToRad, RadToDeg

Hyperbolic functions

  • Cosh, Sinh, Tanh
  • ArcCosh, ArcSinh, ArcTanh

Transcendental

  • Exp, Ln
  • Log2, Log10, LogN
  • Power
  • Sqrt

Rounding

  • Int, Frac
  • Floor, Ceil
  • Round, Trunc

Information

  • Sign
  • IsNaN
  • IsFinite, IsInfinite

Other

  • Clamp

Updated