Breaking News: Grepper is joining You.com. Read the official announcement!
Check it out

how to add suffix to a number in c#

Logic-less Ladder answered on March 7, 2020 Popularity 3/10 Helpfulness 1/10

Contents


More Related Answers


how to add suffix to a number in c#

0

(int)1.IntegerTrail(); //returns "1st"

(int)2.IntegerTrail(); //returns "2nd"

(int)12.IntegerTrail(); //returns "12th"

(int)111.IntegerTrail(); //returns "111th"

swap out the integer for a double or float or generic type and it should still work. That said, I haven't tried it myself though 

Popularity 3/10 Helpfulness 1/10 Language csharp
Source: Grepper
Tags: add c# suffix
Link to this answer
Share Copy Link
Contributed on Mar 09 2023
Logic-less Ladder
0 Answers  Avg Quality 2/10

Closely Related Answers



0
Popularity 6/10 Helpfulness 2/10 Language csharp
Source: Grepper
Tags: c#
Link to this answer
Share Copy Link
Contributed on Mar 07 2020
webdevjaz
0 Answers  Avg Quality 2/10


X

Continue with Google

By continuing, I agree that I have read and agree to Greppers's Terms of Service and Privacy Policy.
X
Grepper Account Login Required

Oops, You will need to install Grepper and log-in to perform this action.