Because there are numbers that fit in a float that don't fit in a long.
Are you alluding to the fact that long has a wide range? But the purpose is to find the integer part so simple declaration int would do. Strictly, "2.0" is not an integer. Please guide me. Thanks.
I'm an outright beginner. Using Win XP Pro and Code::Blocks. Be nice to me, please.
Are you alluding to the fact that long has a wide range? But the purpose is to find the integer part so simple declaration int would do. Strictly, "2.0" is not an integer. Please guide me. Thanks.
You started so well, and then ... you do know what the word "wide" means, right?