Movatterモバイル変換


[0]ホーム

URL:


Scala 3
3.7.4
LearnInstallPlaygroundFind A LibraryCommunityBlog
Scala 3
LearnInstallPlaygroundFind A LibraryCommunityBlog
DocsAPI
Generated with
Copyright (c) 2002-2025, LAMP/EPFL
Copyright (c) 2002-2025, LAMP/EPFL
Scala 3/scala/scala.math/Equiv/Double/IeeeEquiv

IeeeEquiv

scala.math.Equiv.Double.IeeeEquiv
See theIeeeEquiv companion object
traitIeeeEquiv extendsEquiv[Double]

An equivalence forDoubles which is consistent with IEEE specifications.

Because the behaviour ofDoubles specified by IEEE is not consistent with behaviors required of an equivalence relation forNaN (it is not reflexive), there are two equivalences defined forDouble:StrictEquiv, which is reflexive, andIeeeEquiv, which is consistent with IEEE spec and floating point operations defined inscala.math.

This equivalence may be preferable for numeric contexts.

Attributes

See also
Companion
object
Source
Equiv.scala
Graph
Supertypes
traitEquiv[Double]
classObject
traitMatchable
classAny
Known subtypes
objectIeeeEquiv

Members list

Value members

Concrete methods

Returnstrue iffx is equivalent toy.

Returnstrue iffx is equivalent toy.

Attributes

Source
Equiv.scala
In this article
Generated with
Copyright (c) 2002-2025, LAMP/EPFL
Copyright (c) 2002-2025, LAMP/EPFL

[8]ページ先頭

©2009-2025 Movatter.jp