mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
solve precision varriance
This commit is contained in:
parent
64c01e8fee
commit
1dd692397b
@ -1,6 +1,11 @@
|
||||
import Decimal from 'decimal.js-light'
|
||||
import { ValueTransformer } from 'typeorm'
|
||||
|
||||
Decimal.set({
|
||||
precision: 25,
|
||||
rounding: Decimal.ROUND_HALF_UP,
|
||||
})
|
||||
|
||||
export const DecimalTransformer: ValueTransformer = {
|
||||
/**
|
||||
* Used to marshal Decimal when writing to the database.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user