Convert C# function to plain C, not using floating-point values or 64 bit values

I need 20 lines C# function converted to plain C language without using floating point or 64 bit values (they must be emulated through 2 32 bit variables). The C code must make simple use of 32 bit integer operations, so that the math can be efficiently performed with very little loss of accuracy.

C# source code:

[login to view URL]


1) Floating-point values must be manipulated as integers (i.e. do not use float, int64, longint or double types - only 32 bit integer / DWORD (as well as byte, word, arrays, etc) could be used.

2) Fixed-point math must be used instead of floating point,

3) 64 bit values must be emulated through 32 bit chunks,

4) Do not use 3d party libraries or classes

5) Small accuracy loss is permitted + code must be fast.

Taidot: C-ohjelmointi, C# -ohjelmointi, C++ -ohjelmointi, tietojärjestelmäarkkitehtuuri

Näytä lisää: c# convert int to binary string with leading zeros, convert double to string without scientific notation c#, c# int to binary array, c# turn off scientific notation, c# string.format binary, c# convert integer to binary, convert exponential to number in c#, convert int to 8 bit binary in c#, mips assembly function implement floating point addition, write mips assembly function implement floating point, mips assembly function floating point addition, convert html plain text php function, mips average integers using floating point, mips procedure convert integer floating point, mips convert integer floating point, mips read floating point convert, program floating point full adder using verilog modelsim, convert floating point integer mips, sign bit floating point number mips, writing mips functions convert integer floating point

Tietoa työnantajasta:
( 18 arvostelua ) Beaverton, United States

Projektin tunnus: #17681516

Myönnetty käyttäjälle:


Hello sir/madam... Thanks for invitation. I can convert your c# to c as per requirements. If you are interested contact me to make deal... Regards

$88 USD 3 päivässä
(170 Arvostelua)

I can do it.

$100 USD 3 päivässä
(68 Arvostelua)

34 freelanceria on tarjonnut keskimäärin %project_bid_stats_avg_sub_26% %project_currencyDetails_sign_sub_27% tähän työhön


Hello I have realised it's not just converting C# code to C, there is needed to implement fixed-point math, it may take some time, needed to investigate about how to do it by best way. Pow(e, -t) is not elementary ope Lisää

$111 USD 3 päivässä
(1864 arvostelua)

Can to this today. let m eknow once back so that we can talk more about this. i am expert c# and c++.

$100 USD 3 päivässä
(276 arvostelua)

Hello, I saw the uses dictionary....also, you use "pow"... so, what should I use to simulate floating point with integer32? do you have some slides? when do you need it?. Should I implement " an abstract data Lisää

$250 USD 10 päivässä
(130 arvostelua)

I am very proficient in c and c++. I have 16 years c++ developing experience now, and have worked for more than 7 years. My work is online game developing, and mainly focus on server side, using c++ under Linux environ Lisää

$80 USD 1 päivässä
(145 arvostelua)

I have expertise in C# and C programming. so i can do this task easily. we can have a chat. thanks......

$155 USD 3 päivässä
(334 arvostelua)

Please show to me c# code to estimate time and budget of this conversion .

$333 USD 3 päivässä
(31 arvostelua)

Hi, Cheers for the invite. I need to take a look at the code first, before I confirm further interest. Let me know if you are still interested. Cheers

$115 USD 1 päivässä
(30 arvostelua)

Hello! I have an experiene in low-level C programmin and I know how to calculate exp(x) manually. However could you please clarify 1. If you really need dictionary class to be ported? As I see it is used as array Lisää

$130 USD 3 päivässä
(116 arvostelua)

Hello, I have read your proposal and checked your source code. The main feature of your requirement is conversion from floating decimals to fixed binary integers. That is no problem, because I have very strong basis Lisää

$200 USD 1 päivässä
(22 arvostelua)

Hi. I'm a professional mathematician / programmer with experience over 20 years. I can write this program with integer values without 3d party libraries or classes. Regards, Alex.

$77 USD 1 päivässä
(39 arvostelua)

Hello, I am interested in this project and so wanted to discuss more it in details. I have a lot of experience in C/C# programming. I will provide you quality work according to your instrument. I am ready to discuss w Lisää

$111 USD 3 päivässä
(101 arvostelua)

I have all the skills required for this project and I believe I can deliver this project on time and with all requirements implemented t

$122 USD 3 päivässä
(27 arvostelua)

Hi. I have review your project description. I have full experiences in C++ Math operation Development. I can completely convert your c# code to plain C. I am very interested in your project and also ready to start w Lisää

$100 USD 3 päivässä
(26 arvostelua)

.......................................................................................................................................................................................................................... Lisää

$100 USD 3 päivässä
(41 arvostelua)

Hello. I have good skills in C Programming, C# Programming, C++ Programming, Software Architecture. I have read your project description carefully and i can do it perfectly. Contact me please. Thanks.

$140 USD 3 päivässä
(12 arvostelua)

The code will be translated with specified constraint. Will you please share the code? I do development with C++, for engineering native solutions. When should this be begun?

$50 USD 1 päivässä
(7 arvostelua)

I just want to say, that when you use 64-bits values in 32-bit code, the compiler parse it to 2 32-bit values automaticaly and itself, and it's fast. So, you do not need to be worry about it. Good luck!

$155 USD 3 päivässä
(7 arvostelua)
$222 USD 5 päivässä
(7 arvostelua)

I can do your job.

$388 USD 7 päivässä
(8 arvostelua)

I had experience in C especially on embedded side I can effectively use structure and functional pointers I think the code is to add some variables in predefined values and some math calculation and check whether it g Lisää

$35 USD 2 päivässä
(13 arvostelua)