Click to copy
Types • Reviewed for ksqlDB 0.29
How to Use Float Numbers in ksqlDB
ksqlDB doesn’t support the FLOAT type. Instead, you can
use
:
DOUBLEif getting rounding errors is fine for your use cases. Most float implementations also introduce rounding errors, so this type is the closest to the float type.- or
DECIMAL(precision, scale)if you need exact floating point numbers. For example, currency and monetary operations should use this type.
Was this article helpful?