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

WithRadix

scala.util.FromDigits.WithRadix
traitWithRadix[T] extendsFromDigits[T]

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

Attributes

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

Members list

Value members

Abstract methods

deffromDigits(digits:String,radix:Int):T

Convert digits string with given radix to number of typeT. E.g. if radix is 16, digitsa..f andA..F are also allowed.

Convert digits string with given radix to number of typeT. E.g. if radix is 16, digitsa..f andA..F are also allowed.

Attributes

Source
FromDigits.scala

Concrete 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)

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