tibetan-date-calculator
Version:
A library to calculate tibetan calendar details. It is based on Svante Janson's paper www2.math.uu.se/~svante/papers/calendars/tibet.pdf
21 lines (20 loc) • 589 B
TypeScript
/**
* fraction part a number
*
* @param {number} a - a number to check
* @returns {number} the fractional part of a number
*/
declare const frac: (a: number) => number;
/**
* Modulo of a number (a % b), but from 1..b instead of 0..b-1.
* This means that
* amod(a, b) = a % b
* unless a is a multiple of b. In that case:
* a % b = 0 but amod(a, b) = b.
*
* @param {number} a - number to be divided
* @param {number} b - the number to be divided with
* @return {number}
*/
declare const amod: (a: number, b: number) => number;
export { frac, amod };