Datatable.rows.count返回计数不是整数格式 [英] Datatable.rows.count returning count not in integer format

查看:195
本文介绍了Datatable.rows.count返回计数不是整数格式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨我有一个问题,所有excel数据都加载到数据集中,当我尝试查找行数为datatable.rows.count时,它显示的值为0x000000f3。



为什么不返回整数?以及如何解释上述价值。



我的尝试:



试图谷歌获得这个答案,但无法找到任何正确的参考。

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.

推荐答案

这是一个整数。无论您使用什么来显示值,都是以十六进制格式进行的。 0x000000f3是十进制的243。
That IS an integer. Whatever you're using to display the value is doing so in hexadecimal format. 0x000000f3 is 243 in decimal.


Quote:

为什么不返回整数?以及如何解释上面的值。

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

这是一个整数,只是显示格式为十六进制,如前导 0x
$ b所示$ b

阅读C中的格式化数字.C和C ++是C#的祖先,两者共享很多东西。

这里是C和C ++参考书的链接由语言的作者。注意,C是C ++的祖先,所以知道C对C ++总是有用。

C编程语言 - 维基百科,免费的百科全书 [ ^ ]

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 ++编程语言 [ ^ ]

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[^]


这篇关于Datatable.rows.count返回计数不是整数格式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆