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/Decimal

Decimal

scala.util.FromDigits.Decimal
traitDecimal[T] extendsFromDigits[T]

A subclass ofFromDigits that also allows to convert number literals containing a decimal point ".".

Attributes

Source
FromDigits.scala
Graph
Supertypes
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