Thursday, October 04, 2012

Formatting Numbers for decimals

Javascript: We can use Number.toFixed(x) to format any number for "x" number of trailing decimals in Javascript In .NET we can use the String Formatting while Databinding the element. See example below for GridView.

No comments: