import { curry } from 'ramda' ; import { digit } from './digit' ; import { toFixed } from './to-fixed' ; export const multiply = curry ( ( a , b ) => { const dgt = digit ( a ) + digit ( b ) ; return toFixed ( dgt , a * b ) ; } ) ;