Type Conversion

Noun · Development

Definitions

  1. The process of transforming a value from one data type to another, either implicitly by the compiler/runtime (widening an int to a float) or explicitly by the programmer (calling `parseInt('42')` or `str(42)`). Conversion may change the underlying bit representation and can be lossy if the target type has less precision or range.

    In plain English: Changing a piece of data from one format to another, like turning a number into text or a decimal into a whole number.

    Example: "The type conversion from float64 to int32 truncated our GPS coordinates — we lost everything after the decimal."

Related Terms