Solved

Convertions in C++

Posted on 2012-04-09
2
164 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 19

Accepted Solution

by:
n2fc earned 100 total points
Comment Utility
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
Comment Utility
Thanks
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

In days of old, returning something by value from a function in C++ was necessarily avoided because it would, invariably, involve one or even two copies of the object being created and potentially costly calls to a copy-constructor and destructor. A…
Container Orchestration platforms empower organizations to scale their apps at an exceptional rate. This is the reason numerous innovation-driven companies are moving apps to an appropriated datacenter wide platform that empowers them to scale at a …
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.

771 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now