troubleshooting Question

How do I convert a number to a percent?

Avatar of dudeatwork
dudeatwork asked on
Web ServersColdFusion LanguageWeb Languages and Standards
3 Comments1 Solution720 ViewsLast Modified:
I want to take a number say 65 and turn it into .65
I have tried many ways but I just can't seem to get it.
I have different totals and every employee has different percents they get from the total. So I tried
<cfset mytotal = (#paidamt# * #mypercent#)> and it didn't work because it still saw 65 not .65
I tried
<cfset mytotal = (#paidamt# * ".#mypercent#)> and it gave me a value of 0 or it errored. How do I change a number to a percent? 65 to .65? Thanks.
Jeff
ASKER CERTIFIED SOLUTION
Zvonko
Systems architect

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Top Expert 2006

The Distinguished Expert awards are presented to the top veteran and rookie experts to earn the most points in the top 50 topics.

Join our community to see this answer!
Unlock 1 Answer and 3 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 3 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros