Click to copy

• Reviewed for ksqlDB 0.29

How to Use Float Numbers in ksqlDB

ksqlDB doesn’t support the FLOAT type. Instead, you can use :

  • DOUBLE if 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.
Discover what readers are saying
topictale
Get easy to digest how-tos on ksqlDB
Sign up
Please read our Privacy Policy to understand how we protect and manage your data.
You may also like