2 lines
229 B
JavaScript
2 lines
229 B
JavaScript
function t(t){return null==t||isNaN(t)?"¥0.00":`¥${(t/100).toFixed(2)}`}function n(t,n){try{const r=function(t,n){return n<=0||t<=0?0:Math.round(t/n)}(t,n);return(r/100).toFixed(2)}catch(r){return"0.00"}}export{t as f,n as s};
|