Click here to Skip to main content
15,944,832 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi I have an issue wherin all the excel data is loaded into dataset and when i try to find count of rows as datatable.rows.count it shows me value 0x000000f3.

Why is it not returning whole number ? and how to interpret the above value.

What I have tried:

tried to google for this answer but couldnt find any proper reference.
Posted
Updated 1-Dec-16 11:13am

That IS an integer. Whatever you're using to display the value is doing so in hexadecimal format. 0x000000f3 is 243 in decimal.
 
Share this answer
 
Comments
AlwzLearning 1-Dec-16 17:12pm    
Thank You for quick response .
Now i got it . But just curious why it shows in hexadecimal format and not in integer directly like it does for List or any other collections.
Dave Kreskowiak 1-Dec-16 17:37pm    
You still haven't said what "IT" is. If you're talking about the debugger in Visual Studio, right click the value and uncheck "Hexadecimal Display".
AlwzLearning 1-Dec-16 17:45pm    
ya sorry I realized it later, while looking at debugger settings.
Thank You !
Quote:
Why is it not returning whole number ? and how to interpret the above value.
It is an integer it is just that the display format is hexadecimal as indicated by the leading 0x

Read about formatting numbers in C. C and C++ are ancestors of C# and both share a lot of things.
Here is links to references books on C and C++ by the authors of the languages. Note than C is the ancestor of C++, so knowing C is always useful with C++.
The C Programming Language - Wikipedia, the free encyclopedia[^]
https://hassanolity.files.wordpress.com/2013/11/the_c_programming_language_2.pdf[^]
http://www.ime.usp.br/~pf/Kernighan-Ritchie/C-Programming-Ebook.pdf[^]

C++ Programing Language[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900