如何在VB.NET中将IEEE 754浮点转换为十六进制 [英] How to convert IEEE 754 floating point to HEX in VB.NET
本文介绍了如何在VB.NET中将IEEE 754浮点转换为十六进制的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
全部,
我需要在VB.NET中将IEEE 754浮点数转换为HEX.请帮助我或建议我如何获得它...
感谢ADV
Hai All,
I need to convert IEEE 754 floating point to HEX in VB.NET. Please help me or suggest me how to get it ...
Thanks in ADV
推荐答案
使用System.String的> ^ ]方法.
Use the Format()[^] method of System.String
.
该问题没有任何意义,因为数字类型永远不会是十进制,十六进制,八进制或类似的数字.十六进制仅与代表某些数字数据的字符串有关.正如Richard建议的那样,您只需要格式化它即可. 转换"的概念没有任何意义.没有不同形式的浮点数.字符串不是数字.
—SA
The question makes no sense, as a numeric type is never decimal, hex, octal or something like that. Hex is related only to a strings representing some numeric data. You need just to format it, as Richard advised. The notion of "Convert" makes no sense; there are no different forms of floating points numbers. Strings are not numbers.
—SA
这篇关于如何在VB.NET中将IEEE 754浮点转换为十六进制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文