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
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 ...
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:
...
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 ...
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, ...
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 ...
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 ...
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 ...
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 ...
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, ...
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, ...
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, ...