Solved

Convertions in C++

Posted on 2012-04-09
2
174 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
2 Comments
 
LVL 20

Accepted Solution

by:
n2fc earned 100 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Introduction This article is a continuation of the C/C++ Visual Studio Express debugger series. Part 1 provided a quick start guide in using the debugger. Part 2 focused on additional topics in breakpoints. As your assignments become a little more …
C++ Properties One feature missing from standard C++ that you will find in many other Object Oriented Programming languages is something called a Property (http://www.experts-exchange.com/Programming/Languages/CPP/A_3912-Object-Properties-in-C.ht…
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

856 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