473,408 Members | 1,743 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,408 software developers and data experts.

the smallest float(4 bytes) > 1.0

Can someone give me the smallest float(4 bytes) > 1.0f in oct and hex forms?
Jul 23 '05 #1
3 2080
remi wrote:
Can someone give me the smallest float(4 bytes) > 1.0f in oct and hex forms?


Can you do your homework?
Jul 23 '05 #2

Uzytkownik "Miguel Gimenez" <me@privacy.net> napisal w wiadomosci
news:d2**********@domitilla.aioe.org...
remi wrote:
Can someone give me the smallest float(4 bytes) > 1.0f in oct and hex
forms?


Can you do your homework?


no, no , no
programming is not my subject, but hobby. I need to pass this value to some
function so that it could operate on a scope [0, 1.0], instead of [0,1.0).
Jul 23 '05 #3
remi wrote:
Uzytkownik "Miguel Gimenez" <me@privacy.net> napisal w wiadomosci
news:d2**********@domitilla.aioe.org...
remi wrote:
Can someone give me the smallest float(4 bytes) > 1.0f in oct and hex
forms?


Can you do your homework?

no, no , no
programming is not my subject, but hobby. I need to pass this value to some
function so that it could operate on a scope [0, 1.0], instead of [0,1.0).


See 'FLT_EPSILON' in <cfloat>. Convert it to oct or hex yourself.

Also, you probably need to rewrite your function instead of trying to
coerce it into "correct" behaviour.

V
Jul 23 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Jim West | last post by:
Both int a; std::complex<float> b; std::complex<float> c = static_cast<float>(a)*b; and int a; std::complex<float> b;
2
by: Pepijn Kenter | last post by:
Dear experts. I have a vector<float> and want to convert that to a vector<double>. I optimistically tried: #include <vector> #include <iostream> using namespace std; int main() {
18
by: Active8 | last post by:
I put the bare essentials in a console app. http://home.earthlink.net/~mcolasono/tmp/degub.zip Opening output.fft and loading it into a vector<float> screws up, but input1.dat doesn't. It does...
10
by: bluekite2000 | last post by:
and why doesnt the standard vector have such conversion available?
8
by: ern | last post by:
Anybody know the Linux equivalent (or even better some C standard equivalent) for _gcvt() ? I want my float to become a char*. Thanks!
5
by: xxx | last post by:
Hi all, i'm new in visual c++ and i'm having troubles converting types. Let me explain: i have an unmanaged c++ function that wants an float* parameter but i have an array<float>^, how i can covert...
9
by: richard_lavoie | last post by:
Hi, I have something like this: vector<floatvec1; and I want to cast it, so I use vector vec2<double= static_cast< vector<double(vec1); I always become a error: syntax error before `>'...
4
by: john | last post by:
The code: #include <iostream> #include <limits> int main() { using namespace std;
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.