num2money

Converts a numeric value to a monetary value string

You are now following this Submission

A simple utility to create a monetary value string representation of a number.

Examples:

num2money(200) returns '$200'
num2money(200,'cents') returns '$200.00'
num2money(-200.34) returns '-$200.34'
num2money(2000.34) returns '$2,000.34'
num2money(20000.1023) returns '$20,000.10'

Cite As

Kenneth Eaton (2026). num2money (https://au.mathworks.com/matlabcentral/fileexchange/19431-num2money), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0.0