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.util/FromDigits/Floating

Floating

scala.util.FromDigits.Floating
traitFloating[T] extendsDecimal[T]

A subclass ofFromDigitsthat allows also to convert number literals containing a decimal point "." or an exponent('e' | 'E')['+' | '-']digit digit*.

Attributes

Source
FromDigits.scala
Graph
Supertypes
traitDecimal[T]
traitFromDigits[T]
classObject
traitMatchable
classAny
Known subtypes

Members list

Value members

Inherited and Abstract methods

deffromDigits(digits:String):T

Convertdigits string to value of typeTdigits can contain

Convertdigits string to value of typeTdigits can contain

  • sign+ or-
  • sequence of digits between 0 and 9

Attributes

Throws
MalformedNumber

if digit string is not legal for the given type

NumberTooLarge

if value of result does not fit intoT's range

NumberTooSmall

in case of numeric underflow (e.g. a non-zero floating point literal that produces a zero value)

Inherited from:
FromDigits
Source
FromDigits.scala
In this article
Generated with
Copyright (c) 2002-2025, LAMP/EPFL
Copyright (c) 2002-2025, LAMP/EPFL

[8]ページ先頭

©2009-2025 Movatter.jp