mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
18 lines
444 B
TypeScript
18 lines
444 B
TypeScript
function roundCeilFrom4(decimal: number): number {
|
|
return Math.ceil(decimal / 100) / 100
|
|
}
|
|
|
|
function roundFloorFrom4(decimal: number): number {
|
|
return Math.floor(decimal / 100) / 100
|
|
}
|
|
|
|
function roundCeilFrom2(decimal: number): number {
|
|
return Math.ceil(decimal / 100)
|
|
}
|
|
|
|
function roundFloorFrom2(decimal: number): number {
|
|
return Math.floor(decimal / 100)
|
|
}
|
|
|
|
export { roundCeilFrom4, roundFloorFrom4, roundCeilFrom2, roundFloorFrom2 }
|