import type { Stringer } from "./api.js" ; /**
 * Returns  Stringer which formats given fractions as percentage (e.g.
 * `0.1234 => 12.34%`).
 *
 *  param prec export const percent = ( prec = 0 ) : Stringer < number > => ( x ) => ( x * 100 ) . toFixed ( prec ) + "%" ;