format_num function

Format numbers (with D3)