Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Other Discussions
  3. IT & Infrastructure
  4. Units in c++ (SI or other)

Units in c++ (SI or other)

Scheduled Pinned Locked Moved IT & Infrastructure
c++question
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    Jordan C Atlas
    wrote on last edited by
    #1

    Does anyone have any experience implementing units and unit conversions in c++? I'm curious if this has been solved in a library or something already... I guess what I'm imagining would be a sort of user-defined type that has a value and a unit associatated with it, and then some overloaded operators to handle operations. Does anyone know of any references that demonstrate such a thing (not necessarily using the method I suggested). -Jordan

    D 1 Reply Last reply
    0
    • J Jordan C Atlas

      Does anyone have any experience implementing units and unit conversions in c++? I'm curious if this has been solved in a library or something already... I guess what I'm imagining would be a sort of user-defined type that has a value and a unit associatated with it, and then some overloaded operators to handle operations. Does anyone know of any references that demonstrate such a thing (not necessarily using the method I suggested). -Jordan

      D Offline
      D Offline
      DavidNohejl
      wrote on last edited by
      #2

      Jordan C. Atlas wrote: I'm curious if this has been solved in a library or something already... Google[^] Definitely yes. best regards, David 'DNH' Nohejl Never forget: "Stay kul and happy" (I.A.)

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups