double

package
v0.6.5-rc31 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 14, 2026 License: EPL-1.0 Imports: 5 Imported by: 0

Documentation

Overview

Package double exposes JVM-faithful java.lang.Double equivalents for code running on glojure. The structure mirrors the integer/long packages; all values are typed as float64 to match Java's double width.

Index

Constants

View Source
const (
	SIZE  = jdouble.SIZE
	BYTES = jdouble.BYTES
)

Variables

View Source
var (
	MIN_VALUE         = jdouble.MIN_VALUE
	MAX_VALUE         = jdouble.MAX_VALUE
	MIN_NORMAL        = jdouble.MIN_NORMAL
	POSITIVE_INFINITY = jdouble.POSITIVE_INFINITY
	NEGATIVE_INFINITY = jdouble.NEGATIVE_INFINITY
	NaN               = jdouble.NaN
)

Functions

func Compare

func Compare(x, y any) int32

func DoubleToLongBits

func DoubleToLongBits(x any) int64

func DoubleToRawLongBits

func DoubleToRawLongBits(x any) int64

func IsFinite

func IsFinite(x any) bool

func IsInfinite

func IsInfinite(x any) bool

func IsNaN

func IsNaN(x any) bool

func LongBitsToDouble

func LongBitsToDouble(x any) float64

func Max

func Max(a, b any) float64

func Min

func Min(a, b any) float64

func ParseDouble

func ParseDouble(x any) float64

func Sum

func Sum(a, b any) float64

func ToHexString

func ToHexString(x any) string

func ToString

func ToString(x any) string

func ValueOf

func ValueOf(x any) float64

ValueOf accepts a string (parsed) or any numeric (coerced to float64).

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL