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 » Value: why not float support?
Re: Value: why not float support? [message #30387 is a reply to message #30363] Mon, 27 December 2010 13:20 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 14267
Registered: November 2005
Ultimate Member
kohait00 wrote on Sun, 26 December 2010 05:28


concerning double and float in databases: i'm sure the major db's *dont* simply convert it internally. at least not in terms of storage (millions and millions of rows with wasted 4 bytes for double, where float had been enough cant be aforded). thats why one generally is to think of a good, well fitting model/schema for one's problem, not to waste space and performance when handling the data.



No, that was not what I wanted to say. Of course, if you use 4B float in the DB schema, it gets stored as 4B value (unless you are using Oracle, which has very specific way of dealing with numbers anyway).

BUT all these floats can be moved at interface level to DB as doubles.

Which is sort of similar to what I recommend w.r.t. float in C++ code - only use it for storage...
 
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: Core/Path.cpp: the limitation of GetCurrentDirectory for POSIX
Next Topic: InitCaps() proposal
Goto Forum:
  


Current Time: Mon Aug 25 18:01:48 CEST 2025

Total time taken to generate the page: 0.07016 seconds