Thousands separator in .Net/F#

Posted by rwallace on Stack Overflow See other posts from Stack Overflow or by rwallace
Published on 2010-06-04T09:14:38Z Indexed on 2010/06/05 11:02 UTC
Read the original article Hit count: 110

Filed under:
|

What's the recommended way to print an integer with thousands separator? Best I've come up with so far is

let thousands(x:int64) = String.Format("{0:0,0}", x)

Which works in most cases, but prints zero as 00.

© Stack Overflow or respective owner

Related posts about .NET

Related posts about F#