diff --git a/packages/client/src/runtime/query.ts b/packages/client/src/runtime/query.ts index 7094c8cd6eee..fb6049fb560d 100644 --- a/packages/client/src/runtime/query.ts +++ b/packages/client/src/runtime/query.ts @@ -651,6 +651,10 @@ function stringify(value: any, inputType?: DMMF.SchemaArgInputType) { return value } + if (typeof value === 'number' && inputType?.type === 'Float') { + return value.toExponential() + } + return JSON.stringify(value, null, 2) }