Questions tagged [unit-conversion]

Unit conversion is the process of applying an arithmetic transformation (usually multiplying/dividing or adding/subtracting) using a conversion factor to convert one textual representation of a quantity, based on one unit, to another.

Unit conversion is the process of applying an arithmetic transformation (usually multiplying/dividing or adding/subtracting) using a conversion factor to convert one textual representation of a quantity, based on one unit, to another.

Dimensional analysis is a related process that can assist in identifying the conversion(s) to be performed.

91 questions
0
votes
1 answer

Feet to Miles and Miles to Feet conversion

I am using following formula to convert feet to miles and miles to feet. Before save in db I convert value from Feet to Miles and during fetch from db I convert it back to Feet. Both formula I have mentioned in below code part. It works fine with…
Pushkar Rathod
  • 353
  • 2
  • 7
  • 26
0
votes
1 answer

Convert object length from pixels to cm without knowing the calibration factor

In a digital image, size (or distance) is measured in pixels. Is there any method to find the actual size of an object in an image without knowing the calibration factor?
0
votes
2 answers

Getting output for inches

Below is a code I wrote to convert user input of inches to miles, yards, feet. My only issue is that the format in which I would like this to be output would require the output to have "0 inches" as well. For the life of me I cannot figure that much…
0
votes
3 answers

How to convert a distance units

I want to convert 4.5 km to mile in depending on the user's location. Is it possible in Android? In iOS I can use something like fileprivate let _distanceFormatter = MKDistanceFormatter()_distanceFormatter.string(fromDistance: model.distanse)
proft
  • 36
  • 3
  • 5
0
votes
0 answers

range of numeric values with unit in Solr

My problem is that i have documents containing a numeric value and a unit like this: weight:100g weight:1000kg And i want to make querys like this: weight:[5g TO 100KG] Of course this doent work as easy as it sounds, the values are saved as…
Nick
  • 137
  • 3
  • 13
0
votes
1 answer

How can I automatically adjust unit expression (mm, cm, m, km) in matplotlib?

I'm graphing a large number of plots whose data vary substantially. The values are in scientific notation ranging from E-9 to E+3 for a particular unit and I need to adjust that in the axis label as well as in the data. For example, if I have a data…
adamcircle
  • 694
  • 1
  • 10
  • 26
0
votes
1 answer

node.js based library for scientific unit conversion

before reinventing the wheel i'm asking the crowd if anyone knows a node.js library (MIT) for scientific unit conversion. the library should cover the following topics: Power Heat rate / Efficiency Energy / Work / Torque Temperature absolut…
Jan Viehweger
  • 522
  • 5
  • 19
0
votes
1 answer

How to convert attribute table fields in WGS84 meters to fields in decimal degrees in QGIS

I have fields where location data is in X- and Y columns in WGS84 meter-format. How can I convert these fields or create new fields with decimal degrees? Vector->Geometry Tools-> Export/Add geometry columns creates duplicate fields with the same…
0
votes
3 answers

Is it possible to name a variable 'in' in python?

I am making a unit converter for a homework assignment, and I am using abbreviations for the various units of measurement as variable names, but when I try to define 'in' as a variable, it thinks I mean to use the word 'in' as if I wanted to say…
0
votes
1 answer

KG to lbs conversion not working properly

I am new in JavaScript and can't figure out why is it not working. HTML :