?
Solved

Convertions in C++

Posted on 2012-04-09
2
Medium Priority
?
191 Views
Last Modified: 2012-04-09
There are sometimes easy conversions that you can do it yourself. But is there a std. C++ conversion class (or classes) that I can use to convert units.

For example if I want to covert Hz to milliseconds whats the best approach? Iike I said I can do the conversion statements myself; but I am looking for an existing C++ class/lib so that I could use that instead of reinventing the wheel.
0
Comment
Question by:prain
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 20

Accepted Solution

by:
n2fc earned 400 total points
ID: 37823397
The Code Project has some libraries for this...

See: http://www.codeproject.com/Articles/23087/Measurement-Unit-Conversion-Library

PS: Hz is a unit of INVERSE time!  Thus, it will not convert to ms!
0
 

Author Closing Comment

by:prain
ID: 37824693
Thanks
0

Featured Post

[Webinar] How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Errors will happen. It is a fact of life for the programmer. How and when errors are detected have a great impact on quality and cost of a product. It is better to detect errors at compile time, when possible and practical. Errors that make their wa…
Templates For Beginners Or How To Encourage The Compiler To Work For You Introduction This tutorial is targeted at the reader who is, perhaps, familiar with the basics of C++ but would prefer a little slower introduction to the more ad…
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.
Suggested Courses

764 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question