ActionView::Helpers::NumberHelper
number_with_precision
API docs (Rails 8.1.4.1) ↗def number_with_precision(number, options = {})
Description
Formats the number rounded to a given number of digits.
ERB
Changes from the previous output: Added Removed Changed
HTML
Preview
Form submission
Form data
| name | value |
|---|
Request body
Content-Type:
params