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

FromDigits

scala.util.FromDigits
See theFromDigits companion trait

Attributes

Companion
trait
Source
FromDigits.scala
Graph
Supertypes
classObject
traitMatchable
classAny
Self type

Members list

Type members

Classlikes

Attributes

Source
FromDigits.scala
Supertypes
classObject
traitMatchable
classAny
Show all
Self type

Attributes

Source
FromDigits.scala
Supertypes
classObject
traitMatchable
classAny
Self type
traitDecimal[T] extendsFromDigits[T]

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

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

Attributes

Source
FromDigits.scala
Supertypes
traitFromDigits[T]
classObject
traitMatchable
classAny
Known subtypes
traitFloating[T] extendsDecimal[T]

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

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

Attributes

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

The base type for exceptions that can be thrown fromfromDigits conversions

The base type for exceptions that can be thrown fromfromDigits conversions

Attributes

Source
FromDigits.scala
Supertypes
Known subtypes

Thrown if digit string is not legal for the given type

Thrown if digit string is not legal for the given type

Attributes

Source
FromDigits.scala
Supertypes

Thrown if value of result does not fit into result type's range

Thrown if value of result does not fit into result type's range

Attributes

Source
FromDigits.scala
Supertypes

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

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

Attributes

Source
FromDigits.scala
Supertypes
traitWithRadix[T] extendsFromDigits[T]

A subclass ofFromDigits that also allows to convert whole number literals with a radix other than 10

A subclass ofFromDigits that also allows to convert whole number literals with a radix other than 10

Attributes

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

Value members

Concrete methods

Convert digit string to Double number

Convert digit string to Double number

Value parameters

digits

The string to convert

Attributes

Throws
MalformedNumber

if digits is not a legal digit string for floating point numbers..

NumberTooLarge

if the resulting number is infinite

NumberTooSmall

if the resulting number is 0.0d, yet the digits string contains non-zero digits before the exponent.

Source
FromDigits.scala

Convert digit string to Float number

Convert digit string to Float number

Value parameters

digits

The string to convert

Attributes

Throws
MalformedNumber

if digits is not a legal digit string for floating point numbers.

NumberTooLarge

if the resulting number is infinite

NumberTooSmall

if the resulting number is 0.0f, yet the digits string contains non-zero digits before the exponent.

Source
FromDigits.scala
defintFromDigits(digits:String,radix:Int = ...):Int

Convert digit string to Int number

Convert digit string to Int number

Value parameters

digits

The string to convert

radix

The radix

Attributes

Throws
MalformedNumber

if digits is not a legal digit string. Legal strings consist only of digits conforming to radix, possibly preceded by a "-" sign.

NumberTooLarge

if number does not fit within Int range

Source
FromDigits.scala
deflongFromDigits(digits:String,radix:Int = ...):Long

Convert digit string to Long number

Convert digit string to Long number

Value parameters

digits

The string to convert

radix

The radix

Attributes

Throws
MalformedNumber

if digits is not a legal digit string. Legal strings consist only of digits conforming to radix, possibly preceded by a "-" sign.

NumberTooLarge

if the resulting number does not fit within Long range

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