Use the str() builtin, which:

Returns a string containing a nicely printable representation of an object.

E.g:

>>> import decimal
>>> dec = decimal.Decimal('10.0')
>>> str(dec)
'10.0'
Answer from Gareth Latty on Stack Overflow
๐ŸŒ
Online String Tools
onlinestringtools.com โ€บ convert-decimal-to-string
Convert Decimal to a String โ€“ Online String Tools
Free online decimal to string converter. Just load your decimal and it will automatically get converted to a string. There are no intrusive ads, popups or nonsense, just a decimal to string converter. Load a decimal, get a string.
๐ŸŒ
Online String Tools
onlinestringtools.com โ€บ convert-string-to-decimal
Convert a String to Decimal โ€“ Online String Tools
Quickly convert a string to a decimal string. ... Quickly convert a decimal string to a string.
Discussions

Python Decimal to String - Stack Overflow
There are tons of topics on here that explain how to convert a string to a decimal, but how do I convert a decimal back to a string? Like if I did this: import decimal dec = decimal.Decimal('10.0... More on stackoverflow.com
๐ŸŒ stackoverflow.com
c# - Converting Decimal to string with non-default format - Stack Overflow
I need to convert decimal to string, in this rulers: 120.00 - "120" 120.01 - "120.01" 120.50 - "120.50" More on stackoverflow.com
๐ŸŒ stackoverflow.com
August 20, 2019
.net - decimal to string conversion in C# - Stack Overflow
How can I convert a list of decimal values to strings such that: No decimal point is shown if the value is an integer Otherwise, the number is formatted to a minimum of two decimal places For examp... More on stackoverflow.com
๐ŸŒ stackoverflow.com
c# - Convert string to decimal, keeping fractions - Stack Overflow
I am trying to convert 1200.00 to decimal, but Decimal.Parse() removes .00. I've tried some different methods, but it always removes .00, except when I supply a fraction different than 0. string v... More on stackoverflow.com
๐ŸŒ stackoverflow.com
๐ŸŒ
Microsoft Learn
learn.microsoft.com โ€บ en-us โ€บ dotnet โ€บ api โ€บ system.decimal.tostring
Decimal.ToString Method (System) | Microsoft Learn
In converting the numeric values to strings, the example uses the formatting conventions of the en-US culture. decimal value = 16325.62m; string specifier; // Use standard numeric format specifiers.
๐ŸŒ
PhraseFix
phrasefix.com โ€บ tools โ€บ decimal-to-string
Decimal to String Converter - PhraseFix
Free online tool that converts decimal numbers to string. Simply enter the decimal and the online tool will convert it into text.
๐ŸŒ
Browserling
browserling.com โ€บ tools โ€บ decimal-to-text
Decimal to Text Converter - Convert Decimal to String - Online - Browserling Web Developer Tools
World's simplest online decimal to text converter for web developers and programmers. Just paste dec values (integers) in the form below, press the Convert Dec to Text button, and you'll get plain text. Press a button โ€“ get text.
Top answer
1 of 4
33

You can use the decimal.ToString override to specify a formatting.

decimal amount = 120.00m;
string str = amount.ToString("0.00");

This can also be used when using String.Format.

Console.WriteLine("{0:0.00}", amount); 

In the case of your first rule, it cannot be done on one line.

decimal amount = 120.00m;
string str = amount.ToString("0.00").Replace(".00", String.Empty);
2 of 4
8

There are different overloads for decimal.ToString based on what formatting you want.

Example

decimal d = 5.00
Console.WriteLine(d.ToString("C")); // for currency

See below for other overloads... specifier is what you put into the ToString(specifier)

MSDN Documentation on Decimal.ToString

decimal value = 16325.62m; string specifier;

// Use standard numeric format specifiers.
specifier = "G";
Console.WriteLine("{0}: {1}", specifier, value.ToString(specifier));
// Displays:    G: 16325.62
specifier = "C";
Console.WriteLine("{0}: {1}", specifier, value.ToString(specifier));
// Displays:    C: $16,325.62
specifier = "E04";
Console.WriteLine("{0}: {1}", specifier, value.ToString(specifier));
// Displays:    E04: 1.6326E+004
specifier = "F";
Console.WriteLine("{0}: {1}", specifier, value.ToString(specifier));
// Displays:    F: 16325.62
specifier = "N";
Console.WriteLine("{0}: {1}", specifier, value.ToString(specifier));
// Displays:    N: 16,325.62
specifier = "P";
Console.WriteLine("{0}: {1}", specifier, (value/10000).ToString(specifier));
// Displays:    P: 163.26 %

// Use custom numeric format specifiers.
specifier = "0,0.000";
Console.WriteLine("{0}: {1}", specifier, value.ToString(specifier));
// Displays:    0,0.000: 16,325.620
specifier = "#,#.00#;(#,#.00#)";
Console.WriteLine("{0}: {1}", specifier, (value*-1).ToString(specifier));
// Displays:    #,#.00#;(#,#.00#): (16,325.62)
Find elsewhere
๐ŸŒ
Phrase
phrase.com โ€บ home โ€บ resources โ€บ blog โ€บ how do i convert a decimal to a string with thousands separators?
How Do I Convert a Decimal to a String with Thousands Separators?
January 23, 2025 - As an example, 1000000.00 in French would be formatted as "1 000 000,00". Note that the space character is used for thousands sepration, and the comma for decimal separation. ๐Ÿคฟ Go deeper ยป Weโ€™ve written A Concise Guide to Number Localization which covers numeral systems and separator characters.
๐ŸŒ
Oreate AI
oreateai.com โ€บ blog โ€บ unlocking-c-decimal-to-string-beyond-the-basics โ€บ 38e38b397edb5f3bab2c7b0f75db9c21
Unlocking C# Decimal to String: Beyond the Basics - Oreate AI Blog
1 month ago - At its core, the simplest way to convert a decimal to a string is by using the .ToString() method. Think of it as giving your number a voice. For instance, if you have a decimal conversion = 16.3040m;, a straightforward conversion.ToString() ...
๐ŸŒ
UiPath Community
forum.uipath.com โ€บ help โ€บ studio
How to convert String to Decimal ... to string again - Studio - UiPath Community Forum
March 25, 2024 - Hi to all, I have a problem managing ... on DB. The โ€˜ammoutโ€™ value on DB is set as Decimal, with two decimals. The value on the CSV is integer. ex: 80000 , I need to get this value: 800.00 as a string, to paste into the final XML. Can a......
๐ŸŒ
Google Groups
groups.google.com โ€บ g โ€บ elixir-lang-talk โ€บ c โ€บ Cm28eIdtO_Y
Convert decimal to string with fixed decimal places
September 29, 2015 - You are using Floats and as per my previous rant on this, there are a lot of issues with the default rounding on floats I haven't used the decimal library in anger, but I would expect you to need to use the Decimal.to_string function and checking the code implies you would first need to update ...
๐ŸŒ
MathWorks
mathworks.com โ€บ matlabcentral โ€บ answers โ€บ 555997-problems-of-convert-decimal-number-to-a-string
Problems of convert decimal number to a string - MATLAB Answers - MATLAB Central
June 28, 2020 - Now I want to convert a input decimal number (maybe a input number, not known) to a string, I try to use num2str and string function, but there are some problems that I can not solve. num = [110...
๐ŸŒ
Studwiz
studwiz.com โ€บ utilities โ€บ decimal-to-text
Decimal to Text - Studwiz.com
June 22, 2022 - Paste your decimal string, which can be of any length, into a decimal converter to process and convert it into English text.
๐ŸŒ
GeeksforGeeks
geeksforgeeks.org โ€บ python โ€บ convert-decimal-to-string-in-python
Convert Decimal to String in Python - GeeksforGeeks
July 28, 2020 - from decimal import Decimal dec = Decimal(10) print(dec, type(dec)) # Converting to string dec = str(dec) print(dec, type(dec))
๐ŸŒ
Text Compare
textcompare.io โ€บ decimal-to-text
Decimal to Text Converter Online
Decimal to Text converts decimal numbers into text characters, facilitating various applications, including data decoding and text representation.