Questions tagged [units-of-measurement]

Units of Measure are compile-time attributes that can be associated with numeric values, typically used to indicate length, volume, mass, and so on.

A Unit of Measure is information that can be associated with a numeric value, typically used to indicate length, volume, mass, and so on. This information is used in numerous applications ranging across engineering, science, physics, and many other disciplines.

If this information is stored as a compile-time attribute, then a compiler can verify arithmetic relationships of values across the numeric computations to have the proper units, therefore preventing programming errors.

See also Units Dimensions And Dimensionless Numbers.

607 questions
-2
votes
1 answer

Convert distance of 2 points to 1/32 of an inch?

My app gives the distance between 2 points made on a picturebox. Previously they were doing this by hand and wanted an app to do it. However when you make the line, the distance for that line using the below formula for even a small line for example…
Lee
  • 133
  • 11
-2
votes
3 answers

How can I evaluate math expressions with human readable units in python?

Is there a way to evaluate expressions from strings that include human readable number units? For example: myformula='1u+1e-6' result = eval(myformula) ... should be equivalent to 1e-6+1e-6 (where u=micro).
-3
votes
1 answer

querying gpsd through python: units of measure

I have a bit of python code that queries gpsd with session=gps.gps(mode &c &c report=session.next() as published all over the www. It works nice, but gives altitude in metres and speed in km/h. Being in aviation (and in the free world), I want…
Karlchen9
  • 25
  • 5
-5
votes
1 answer

what's the mean of "This is in 1/20th of a point."?

this is in the apache POI export Excel document ,I Don't know this sentence mean "This is in 1/20th of a point."; who can help me! I know in this sentence "1/20th" th is length unit,but I Don't know convert this unit;
-6
votes
1 answer

How to set the value to my elements

How to set the value to my margin property when I want to responsive it? I mean, if I want to set value to width, for example to 50% So what if I want to set with margin? I have to set it in em is it right? or font size: em because pixel is a…
ali
  • 11
  • 6
-7
votes
1 answer

Java measure units calculator

How can I change this code to make variable operation2 working in second switch function. When I do parseDouble it gets error bla bla parsedouble. It doesn't work even if I try to create global operation2. package matura; import…
Skillzone
  • 1
  • 3
1 2 3
40
41