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 » Developing U++ » U++ Developers corner » Value with type float
Re: Value with type float [message #60201 is a reply to message #60200] Fri, 06 October 2023 13:40 Go to previous messageGo to previous message
Tom1
Messages: 1302
Registered: March 2007
Ultimate Contributor
mirek wrote on Fri, 06 October 2023 13:51
This works (and I believe it should) right now. Am I missing something?

Quote:


As for float Null, yes, please include the changes shown in:

https://www.ultimatepp.org/forums/index.php?t=msg&th=120 82&goto=59874&#msg_59874



I am reluctant adding yet another Null...

Mirek


Hi Mirek,

No, you're not missing anything here. My code was there just to demonstrate what I mean by 'reads back exactly the same'.

As for the float Null: Instead of writing this:
	float f = (float)(double)Null;
	...
	Cout() << IsNull((double)f) << "\r\n";

I would like to do this:
	float f = Null;
	...
	Cout() << IsNull(f) << "\r\n";


Is there a specific reason why you wish to avoid adding another Null to support float?

Best regards,

Tom
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Build U++ with CMake and Clang Example
Next Topic: A temporary solution to garbled code in U++applications built through MSVC
Goto Forum:
  


Current Time: Thu May 01 06:05:18 CEST 2025

Total time taken to generate the page: 0.01342 seconds