Microsoft
Software
Hardware
Network
Question : float pattern
How would I format a float number into a string with no decimal zero? For instance, convert myNumber = 123.0 to myString = "123".
Answer : float pattern
You'd have to test first:
1: 2: 3: 4:
int i = (int)d; if(d == i) { // Use the code i gave you }
Random Solutions
format of numeric data in nvarchar field
WCF hosted on IIS: Why doesn't it show me the WCF method name and it's signature?
Dont display record if string field is blank/null
Deploy Printer Drivers to WinXP Computers
I have a Toshiba Satellite A105 Laptop, and Hard Drive From Dell Vostro 1500 w/ Win 7 wont boot?
Saving Favorites in Windows 7, IE 8
How to deny write to the desktop for users?
Need a 40" or larger touchscreen computer
Pervasive SQL 9.5 - odbc SELECT Query - DATE = '0000-00-00'
how to prevent others to see my website without logging in