Skip to content

Commit

Permalink
added cube and square to typings
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielJDufour committed Dec 11, 2022
1 parent 41ea17a commit 0c1660c
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion preciso.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ export function add(a: string, b: string): string;
export function binomial_coefficient(n: string, k: string): string;
export function ceil(n: string): string;
export function compare(a: string, b: string): "<" | ">" | "=";
export function cube(
base: string,
options?: { ellipsis?: boolean; fraction?: boolean; imaginary?: boolean; max_decimal_digits?: number; zero_to_the_power_of_zero?: string }
): string;
export function cube_root(radicand: string, options?: { imaginary?: boolean; max_decimal_digits?: number }): string;
export function divide(dividend: string, divisor: string, options?: { max_decimal_digits: number; ellipsis: boolean }): string;
export function factorial(n: string): string;
Expand All @@ -15,10 +19,18 @@ export function max(nums: string[]): string;
export function min(nums: string[]): string;

export function multiply(a: string, b: string, options?: { max_decimal_digits?: number }): string;
export function pow(base: string, exponent: string, options: { ellipsis?: boolean; max_decimal_digits?: number; zero_to_the_power_of_zero?: string }): string;
export function pow(
base: string,
exponent: string,
options?: { ellipsis?: boolean; fraction?: boolean; imaginary?: boolean; max_decimal_digits?: number; zero_to_the_power_of_zero?: string }
): string;
export function remainder(dividend: string, divisor: string): string;
export function root(radicand: string, index: string, options?: { imaginary?: boolean; max_decimal_digits?: number }): string;
export function sign(n: string): string;
export function square(
base: string,
options?: { ellipsis?: boolean; fraction?: boolean; imaginary?: boolean; max_decimal_digits?: number; zero_to_the_power_of_zero?: string }
): string;
export function square_root(radicand: string, options?: { imaginary?: boolean; max_decimal_digits?: number }): string;
export function subtract(a: string, b: string): string;
export function truncate(n: string);
Expand Down

0 comments on commit 0c1660c

Please sign in to comment.