Converting involves changing data from one data type or format to another.

learn more… | top users | synonyms

7
votes
1answer
48 views

Conversion calculator using polymorphism and Swing

This is my first attempt at a program (outside of school) and I was trying to implement and learn polymorphism on a conversion calculator for volumes and weights. I found myself using long ...
7
votes
4answers
608 views

Kelvin-Fahrenheit-Celsius temperature converter

I am curious if it would ever be in good practice to omit constructor definitions from a class. Here, the intention of the Temperature class is to simply convert between one temperature scale to ...
2
votes
2answers
46 views

Binary Conversion in Java

Before implementing a GUI I tried performing it at CLI first and I also tried to implement it by using calling methods to another class. ...
8
votes
2answers
68 views

Converting to Base 26 in One Based mode

I needed to create a simple method that converts numbers in Base 26 (string) using, as expected, letters from a to z. But that's not all, this Base 26 needs to be ...
3
votes
1answer
51 views

Updating geo coordinates

An error in a live environment was detected when trying to convert string geo coordinates into a double. The current culture (hu-HU) uses comma instead of point ...
-2
votes
1answer
36 views

Text-to-Morse Code translator [closed]

I'm curious if anyone can come up with a better code structure (loops, checks) than what I have done. I need to change the structure because my teacher was unhappy with the for loop and if else's for ...
0
votes
3answers
82 views

convertToHHMM function

Can someone help me make a more elegant solution to this function? ...
2
votes
2answers
44 views

ConcurrentLinkedQueue to unmodifiable list

I have a ConcurrentLinkedQueue where I put some mails in. Now I have a visual page where I want to see what's in the Queue, but ...
5
votes
2answers
189 views

Length Converter

I have a Swing application that converts lengths. Inches to centimeter, feet to yard, etc. I’m wondering if I could make the super large HashMap a little smaller, or more efficient. Any other ...
0
votes
1answer
94 views

Converting from binary to unary [closed]

I have function that convert binary number to unary number based on a Markov algorithm. In what ways can I improve the code? The algorithm goes as follows: Replace all ...
7
votes
3answers
501 views

Function that convert decimal to binary

I have a function that converts an integer to its binary representation. I am wondering if there is any way I can improve the function. ...
6
votes
2answers
114 views

Convert a 24bit bitmap to grayscale

I wrote this so I can learn CUDA. This is coded to work on my laptop's Nvidia GeForce GT 540M. Main points I need reviewed: CUDA programming conventions Performance, especially kernel speed C ...
1
vote
1answer
75 views

Conversion functions between binary, hexadecimal and ASCII

I've written a small suite to easily convert my data between binary, hexadecimal and ASCII: ...
5
votes
3answers
186 views

atoi implementation in C

I'm looking for feedback on my atoi implementation here in C. Any feedback would great. I made my own atoi for fun and to learn ...
1
vote
1answer
56 views

Beat count-to-time converter (task #2)

About a year ago, I was given a C++ assignment as a preliminary job-interview test. The assignment included 4 different tasks, from which I had to choose one. I actually chose and completed 3 out of ...
2
votes
1answer
49 views

Rhythm notation converter (task #1)

About a year ago, I was given a C++ assignment as a preliminary job-interview test. The assignment included 4 different tasks, from which I had to choose one. I actually chose and completed 3 out of ...
2
votes
1answer
61 views

Converting a string to a corresponding type in JavaScript

I need to convert a string value to its primitive type in JavaScript. Other values that are not of type String should just be returned. Example: String '...
4
votes
2answers
50 views

Time Code with Microsecond Conversion

The function below converts a time code into seconds, while maintaining the decimal value (fractions of seconds). The time code fed to this function will always contain microseconds. This currently ...
3
votes
0answers
32 views

MS Access to PostgreSQL converter

I was hoping to get some feedback on the implementation of this class for programmatically converting an access file into a PostgreSQL schema (works by obtaining schema data from the cursor object). ...
8
votes
2answers
128 views

Reference implementation of HTML-to-JSON converter for PCG

I have opened a puzzle at Programming Puzzles and Code Golf. The question is not perceived well (yet) and one of the reasons is that no reference implementation is provided. To mitigate this ...
6
votes
2answers
123 views

int32 to char[4] conversion functions

I need to pass some int32_t values into and later retrieve them from a local storage API that uses void* and ...
5
votes
1answer
61 views

Binary Digits to ASCII Characters

I wrote this code, as a novice a to Prolog, for a challenge posted on /r/DailyProgrammer. The formal description of this challenge, as presented in the prompt reads: Input description On ...
2
votes
0answers
135 views

PDF-to-JSON converter

I've created some methods to help me convert PDF to text and then text to a JSON object. I've never done this before and I'm using this exercise as a way to improve my knowledge of Ruby. The ...
2
votes
1answer
89 views

Byte-to-binary conversion function

My implementation of a binary-to-bits converting function: ...
4
votes
1answer
76 views

Speed unit converter

I'm basically a newbie in android app developing. So I'm not sure if this is the right way to write these codes. I have made an app called "Zconverter". It has 9 fragments and the code i m showing ...
3
votes
1answer
260 views

Binary to ASCII converter

This is a program I wrote to convert binary to ASCII. I am still learning ARM assembly. How can I improve my program? Is there any bad programming habits in my code? ...
7
votes
3answers
1k views

Convert Integer to Date in Java

Due to some clueless soul, we have several fields in a legacy database that uses a 6-digit integer to represent a date in (YYYYmm) format. The date field is assumed to be the last day of the given ...
3
votes
1answer
51 views

Convertors converting unconverted objects

In my app, I have several convertors, like these two: ...
2
votes
1answer
60 views

Binary convert to string in Ruby

This was a challenge for reddit #202 Easy /u/learnprogramming ...I wish that someone reviews my code and let me know your opinion about my way of thinking beacause I am a total beginner in Ruby: ...
8
votes
2answers
848 views

cm-to-inch calculator

After a few pages reading Learning Python Hard Way, I've decided to try to make a simple cm-to-inch calculator. I am very excited about this achievement, and I want someone to check my code. It works ...
3
votes
1answer
91 views

Converting an array-returning function to a lazy evaluator

Take a look at the following function: ...
5
votes
1answer
63 views

Exchange system of numbers

I've got the following task: Keeping in mind Horner's Scheme, write an application that converts a given number x in ...
1
vote
1answer
18 views

Location information (store/send over network)

I have to calculate a user's location periodically and store & send it over the network on Android. I also have to indicate errors during calculation of location as well. The errors could come ...
5
votes
1answer
68 views

Dynamic display of number converted to different numeral system

The program is displaying given number (right now it is only signed int) converted to different numeral system (binary,octal and hexadecimal for now). Number can be input in the text box and the ...
3
votes
0answers
432 views

Converting Delphi colors between TColor, RGB, CMYK, and HSV

I wrote a record which encapsulates conversion of colors between TColor, RGB values, CMYK ...
3
votes
4answers
1k views

Hex to Decimal converter

Any feedback is welcome: ...
1
vote
1answer
69 views

Storing Data In a Image pixels

I wrote a tool to store text as colors in a image around the border. I then saved the resulting image to file. To use the resulting file I set it's path to a the src attribute of a tag and call ...
2
votes
1answer
61 views

All-in-one number base converter

I coded this program as a challenge for /r/dailyprogrammer. Basically this program can convert any number from any base to another base including negative bases as long as the input is coherent. Did I ...
4
votes
3answers
128 views

Converting click count data to JSON

I have an array filled with 5 other arrays that consists of arrays of 2 values (first a date then a count): ...
1
vote
3answers
120 views

Converting text to colored pixels and back again

Any suggestions for improvement or critiques are welcome! ...
2
votes
1answer
163 views

Convert a formatted file size to bytes

I needed to convert a formatted file size back into its length in bytes. I came up with the following code but want it reviewed: ...
7
votes
3answers
286 views

Using enum descriptions to string/text binding

In my WP8 application I need to show a couple of radio buttons to let the user select a value out of an enum. I don't want to hardcode either the value or the text ...
4
votes
1answer
108 views

Converting to Roman Numeral with Recursive Algorithm

Summary I'm getting ready to dive back into a "more proper" project, so I wanted to take a moment to get my TDD hat on before doing so. I decided to tackle this Roman Numeral Kata for practice. The ...
4
votes
1answer
422 views

Convert number into hours : minutes

I wrote a simple extension to convert a number into a hours and minutes string in the ##:## format. This seems like a good way to do it, but let me know what you think. ...
3
votes
1answer
61 views

Conversion Helper with support for enumerations and Nullable<T> - The Remix

I recently wrote this code as a more versatile stand-in for Convert.ChangeType. I very recently posted an earlier version, for which I received some good feedback. I've incorporated that feedback and ...
1
vote
0answers
88 views

HTML to plain text converter

Please, review the code below. Test class: ...
5
votes
3answers
194 views

Conversion helper with support for enumerations and Nullable<T>

I recently wrote this code as a more versatile stand-in for Convert.ChangeType. I have a nagging feeling that there's something I might be overlooking, or that ...
6
votes
2answers
301 views

Low-level methods with temperature conversion program

This is my first program to convert temperatures. I have a very basic knowledge of Python and I tried using only what I already knew to make the program. What are some improvements I can make, or how ...
11
votes
2answers
403 views

Application for converting markdown to PDF

First time writing C in a long time and would like some code review to try and improve my code. I have some specific questions, but first an introduction to the code. The application is a simple ...
4
votes
2answers
979 views

Convert plain text to HTML C#

I have the ToHtml() Extension Method ...