Skip to content

Commit 45514a8

Browse files
Updated ceil types (#2531)
Co-authored-by: Jos de Jong <[email protected]>
1 parent 9759509 commit 45514a8

File tree

2 files changed

+17
-2
lines changed

2 files changed

+17
-2
lines changed

AUTHORS

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,9 +178,10 @@ thetazero <[email protected]>
178178
Alfonso Valenciana <[email protected]>
179179
180180
Glen Whitney <[email protected]>
181-
182181
Divya Yeruva <[email protected]>
182+
183183
Eternal-Rise <[email protected]>
184+
184185
NattapongSiri <[email protected]>
185186
Hjortur Jonasson <[email protected]>
186187

types/index.d.ts

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -811,7 +811,21 @@ declare namespace math {
811811
ceil(x: Complex): Complex;
812812
ceil(x: MathArray): MathArray;
813813
ceil(x: Matrix): Matrix;
814-
ceil(x: Unit): Unit;
814+
815+
/**
816+
* Round a value towards plus infinity If x is complex, both real and
817+
* imaginary part are rounded towards plus infinity. For matrices, the
818+
* function is evaluated element wise.
819+
* @param x Number to be rounded
820+
* @param n Number of decimals Default value: 0.
821+
* @returns Rounded value
822+
*/
823+
ceil(x: number, n: number | MathArray): number;
824+
ceil(x: BigNumber, n: BigNumber | MathArray): BigNumber;
825+
ceil(x: Fraction, n: number): Fraction;
826+
ceil(x: Complex, n: number | MathArray): Complex;
827+
ceil(x: MathArray, n: number): MathArray;
828+
ceil(x: Matrix, n: number | BigNumber): Matrix;
815829

816830
/**
817831
* Compute the cube of a value, x * x * x. For matrices, the function is

0 commit comments

Comments
 (0)