As of May 31, 2023, we have updated our Code of Conduct.

Questions tagged [unit-conversion]

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

11 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
5 votes
0 answers
182 views

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
693 views

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
3 votes
0 answers
268 views

Yet another Fahrenheit and Celsius converter

Introduction I am recently learning Rust by reading The Rust Programming Language (a.k.a. the book). I have finished the first three chapters so far, and this is my attempt for the first exercise ...
L. F.'s user avatar
  • 9,416
2 votes
0 answers
93 views

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
55 views

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
645 views

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
50 views

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
1 vote
0 answers
273 views

Racket - temperature value converter

I'm giving myself programming challenges in various languages so that I can become a better problem solver i.e. focusing on problem abstraction and algorithm design, using various programming ...
awyr_agored's user avatar
0 votes
0 answers
71 views

Temperature Scale Converter in Typescript

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
0 votes
0 answers
86 views

Temperature Scale Converter in Golang

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
0 votes
1 answer
53 views

Temperature Scale Converter in Clojure

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