Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

c# tostring currency

amount.ToString("C", CultureInfo.CurrentCulture)
Comment

c# tostring currency


(5.00).ToString("0.00").Replace(".00","");  // returns 5
(5.90).ToString("0.00").Replace(".00", ""); // returns 5.90
(5.99).ToString("0.00").Replace(".00", ""); // returns 5.99

Comment

PREVIOUS NEXT
Code Example
Csharp :: how to name GameObject in c# 
Csharp :: how to change color of a sprite in unity 
Csharp :: random in unity 
Csharp :: How to get an array of months in c# 
Csharp :: No context type was found in the assembly 
Csharp :: unity rotation 
Csharp :: Find an item in a list by LINQ 
Csharp :: Razor foreach loop 
Csharp :: create material unity script 
Csharp :: convert array object to int[] c# 
Csharp :: dictionary c# iterate 
Csharp :: c# listbox delete selected items 
Csharp :: how to change the axis of a Vector3 variable 
Csharp :: how to redirect to extern page in .net core 
Csharp :: Get key by his value on Dict C# 
Csharp :: convert.tostring with datetime string 
Csharp :: unity RemoveComponent 
Csharp :: c# ignore enter key 
Csharp :: c# loop string array 
Csharp :: .net c# print object 
Csharp :: console reset color c# 
Csharp :: convert string to int c# 
Csharp :: c# remove items from one list that are in another 
Csharp :: c# datetime add 
Csharp :: godot c# export variables 
Csharp :: how to create a delegate in c# 
Csharp :: what is type unity 
Csharp :: unity gameobject.find 
Csharp :: unity health bar 
Csharp :: roman to int 
ADD CONTENT
Topic
Content
Source link
Name
2+8 =