2022-07-30 11:59:04 +00:00
|
|
|
export * from './Types/number.mjs'
|
|
|
|
|
2022-08-07 16:19:27 +00:00
|
|
|
const intquotient = () => (n,d) => {
|
|
|
|
if (d === 0) return d
|
|
|
|
return Math.floor(n/d)
|
|
|
|
}
|
|
|
|
|
2022-07-30 11:59:04 +00:00
|
|
|
export const quotient = {
|
2022-08-07 16:19:27 +00:00
|
|
|
// Hmmm, seem to need all of these because of the generic template version
|
|
|
|
// Should be a way around that
|
|
|
|
'NumInt,NumInt': intquotient,
|
|
|
|
'NumInt,number': intquotient,
|
|
|
|
'number,NumInt': intquotient,
|
|
|
|
'number,number': intquotient
|
2022-07-30 11:59:04 +00:00
|
|
|
}
|