Yngvarr

Generation

generate functionTue, 24 Jan 2023

5 знаков после запятой

function toFixed(num, fixed) { var re = new RegExp('^-?\\d+(?:.\\d{0,' + (fixed || -1) + '})?'); return num.toString().match(re)[0]; }

Javascript
Generate More

Questions about programming?Chat with your personal AI assistant