FloatStringConverter

Float<->String: format via toString; parse via toFloat() (platform semantics — JVM accepts surrounding whitespace, f/d suffixes, and hex floats; the integer parses above are strict-decimal).

Properties

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
open override fun convertFrom(target: String): Float

Total reverse conversion (T -> S). Override if the direction is supported; the non-overridden default throws with a direction-precise T -> S message.

Link copied to clipboard
open fun convertFromOrNull(target: String): Float?

Sanctioned-null reverse variant — override to declare inputs with no legitimate counterpart. The default delegates to convertFrom, so plain converters need not override it.

Link copied to clipboard
open override fun convertTo(source: Float): String

Total forward conversion (S -> T). Override if the direction is supported; the non-overridden default throws with a direction-precise S -> T message.

Link copied to clipboard
open fun convertToOrNull(source: Float): String?

Sanctioned-null forward variant — override to declare inputs with no legitimate counterpart. The default delegates to convertTo, so plain converters need not override it.