Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Core » IntStr function returns an empty string
IntStr function returns an empty string [message #45917] Mon, 25 January 2016 15:03 Go to next message
crydev is currently offline  crydev
Messages: 151
Registered: October 2012
Location: Netherlands
Experienced Member
Hello,

I run into an issue with formatting numbers. I'm not sure whether this is a mistake or rather a bug. When I call the IntStr function with 0x80000000 as value, the FormatIntBase function returns an empty string. It seems to fail at formatting this number. What can I do? Smile

Regards,

crydev
Re: IntStr function returns an empty string [message #45918 is a reply to message #45917] Mon, 25 January 2016 15:09 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
0x80000000 is Null. That is why it is empty string.

You can use e.g. Format("%d", ...)

Mirek
Re: IntStr function returns an empty string [message #46005 is a reply to message #45918] Mon, 15 February 2016 19:06 Go to previous message
crydev is currently offline  crydev
Messages: 151
Registered: October 2012
Location: Netherlands
Experienced Member
That explains it, thanks a lot Mirek!

crydev
Previous Topic: [solved] Why doesn't Vector have Find?
Next Topic: HtmlTable class example request
Goto Forum:
  


Current Time: Thu Mar 28 17:35:39 CET 2024

Total time taken to generate the page: 0.01905 seconds