C Board  

Go Back   C Board > General Programming Boards > C# Programming

Closed Thread
 
LinkBack Thread Tools Display Modes
Old 06-11-2008, 06:13 AM   #1
Registered User
 
Join Date: May 2006
Posts: 1,579
convert from Single to Decimal

Hello everyone,


I think convert from Single or Double to Decimal is always fine since Decimal has broader precision and broader range. Why it is mentioned,

"Conversions from Single or Double to Decimal throw an OverflowException if the result of the conversion is not representable as a Decimal."

http://msdn.microsoft.com/en-us/libr...al(VS.80).aspx


thanks in advance,
George
George2 is offline  
Closed Thread

Thread Tools
Display Modes

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
using bitwise & to convert to octal dbzx C Programming 1 04-28-2009 02:17 AM
Single Entry Single Exit robwhit C Programming 5 11-11-2007 01:34 PM
strcat - cannot convert char to const char ulillillia C Programming 14 12-07-2006 10:00 AM
Converting decimal to binary within a I/O program RandomX C Programming 4 11-26-2006 09:25 AM
how to convert decimal number to ASCII code? oie C Programming 11 11-03-2006 06:19 PM


All times are GMT -6. The time now is 06:06 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22