Skip to content

@technobuddha > library > Math > Operations

Type Alias: FloorOptions

ts
type FloorOptions = {
  precision?: number;
  tolerance?: number;
};

Defined in: floor.ts:9

Options for the floor function

Properties

PropertyTypeDescriptionDefined in
precision?numberThe number of decimal places to consider when applying the ceiling. Defaults to 0.src/floor.ts:13
tolerance?numberA small value to add to the input before applying the floor, useful for floating-point tolerance. Defaults to 0.src/floor.ts:11