Skip to main content

Questions tagged [unit-conversion]

Code whose primary purpose is to convert quantities from one system of measurement to another

6 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
6 votes
0 answers

Converting between cooking measurements

I've made an Android app that converts between cooking measurements, taking into account the type of product you use (that way it can convert between mass and volume by using the density). What are ...
Jeroen Vannevel's user avatar
4 votes
0 answers

RGB to YCbCr conversion in Java

I found a Go language code to do RGB to YCbCr conversion from here! I ported it to Java: ...
lucky1928's user avatar
  • 173
2 votes
0 answers

Temperature Scale Converter in Prolog

Problem statement: Write a program that converts all given temperatures from a given input temperature scale to a given output temperature scale. The temperature scales to be supported are Kelvin, ...
Christian Hujer's user avatar
2 votes
0 answers

SI type safe unit calculations (revised)

This is the continuation of the questions raised in this thread I did include the improvements that were mentioned but still feel like, I do more copies than I need to. Also I am unsure about the ...
CD86's user avatar
  • 173
2 votes
0 answers

Binary, octal, decimal, and hexadecimal conversion in Elisp

Every once in a while I need to convert numbers between bases. As far as I'm aware there are no existing commands that let you do this in Emacs, so I added some. These functions convert numbers at ...
Caterpillar's user avatar
2 votes
0 answers

Module for converting between three currencies

I am creating a simple currency converter, which accepts only 3 currencies. Everything is working fine, just my code doesn't look so good. I tried to wrap it revealing module pattern, and still ...
Nemanja Dukic's user avatar