Handling of numeric values

The I18n formatter class offers many choices to format numeric values.

How can I use this within an ActiveForm field?

If it is not possible what’s the best way / place to format numeric values within an ActiveForm field?

And what’s the best way / place to transform the input string back to a numeric value?

How does validation work on client and server side for formatted values?