The UNIX and Linux Forums
>
Top Forums
>
High Level Programming
how do I calculate percentage ?
.
User Name
Remember Me?
Password
google unix.com
Forums
Register
Forum Rules
Links
Albums
FAQ
Members List
Calendar
Search
Today's Posts
Mark Forums Read
Thread
:
how do I calculate percentage ?
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
#
6
(
permalink
)
04-18-2007
niketan
Registered User
Join Date: Mar 2007
Posts: 4
Why dont u store the division result in the float variable ... I guess compiler will auto cast to higher ... Just check with this
float f:
f= b/a * 100;
and then checking with 25 ...
niketan
View Public Profile
Find all posts by niketan
Find niketan's past nominations received
Find niketan's present nominations given