[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

Convertions in C++

Posted on 2012-04-09
2
Medium Priority
?
196 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Written by John Humphreys C++ Threading and the POSIX Library This article will cover the basic information that you need to know in order to make use of the POSIX threading library available for C and C++ on UNIX and most Linux systems.   [s…
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 video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
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.

649 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