Target filter
Search Kotlin docs
  • Platforms
  • Tealium Prism Kotlin
core/com.tealium.prism.core.api.data/LenientConverters/STRING

STRING

val STRING: DataItemConverter<String>

A lenient converter to String values.

This converter attempts the following conversions in order:

  1. Direct extraction as String

  2. Conversion of Boolean to "true" or "false"

  3. Conversion of numeric types to String

    • Special values: Double.NaN ->"NaN", Double.POSITIVE_INFINITY ->"Infinity"

    • Whole numbers: 1.0 → "1" (removes unnecessary ".0" suffix)

    • Disables scientific notation for better readability

Generated by Dokka
(c) Tealium 2026