Skip to content

abstract class Int

An integer.

Parent type: Number

Examples:

pipeline example {
    val int = 1;
}
Stub code in coreClasses.sdsstub
class Int sub Number {

    /**
     * Convert this integer to a floating-point number.
     *
     * @example
     * pipeline example {
     *     val float = 1.toFloat(); // 1.0
     * }
     */
    @Pure
    @PythonMacro("float($this)")
    fun toFloat() -> float: Float
}

fun toFloat

Convert this integer to a floating-point number.

Results:

Name Type Description
float Float -

Examples:

pipeline example {
    val float = 1.toFloat(); // 1.0
}
Stub code in coreClasses.sdsstub
@Pure
@PythonMacro("float($this)")
fun toFloat() -> float: Float