Find Jobs
Hire Freelancers

Java Code to Node Js or PHP Function

$10-30 USD

Closed
Posted over 1 year ago

$10-30 USD

Paid on delivery
Convert code from java to php or node js equivalent function runnable Java function public static byte[] hexStringToBytes(String hexString) { if (hexString == null || [login to view URL]("")) { return null; } hexString = [login to view URL](); char[] hexCharacter = [login to view URL](); for (int i = 0; i < [login to view URL]; i++) { if (-1 == charToByte(hexCharacter[i])) { return null; } } int length = [login to view URL]() / 2; char[] hexChars = [login to view URL](); byte[] d = new byte[length]; for (int i = 0; i < length; i++) { int pos = i * 2; d[i] = (byte) (charToByte(hexChars[pos]) << 4 | charToByte(hexChars[pos + 1])); } return d; } public static byte charToByte(char c) { return (byte) "0123456789ABCDEF".indexOf(c); } public static String bytesToHexString(byte[] src){ StringBuilder stringBuilder = new StringBuilder(""); if (src == null || [login to view URL] <= 0) { return null; } for (int i = 0; i < [login to view URL]; i++) { int v = src[i] & 0xFF; String hv = [login to view URL](v); if ([login to view URL]() < 2) { [login to view URL](0); } [login to view URL](hv); } return [login to view URL](); } public static float signedBytes2Float(byte byHeight, byte byLow) { float nTempPointLeft = byHeight; int nTempPointRight = (byLow & 0xFF); float fTempPointRight = ((float)nTempPointRight) / 256; float result; if (nTempPointLeft < 0) { result = nTempPointLeft - fTempPointRight; } else { result = nTempPointLeft + fTempPointRight; } BigDecimal bigTemp = new BigDecimal(result); return [login to view URL](2, BigDecimal.ROUND_HALF_UP).floatValue(); }
Project ID: 35432736

About the project

12 proposals
Remote project
Active 1 yr ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
12 freelancers are bidding on average $21 USD for this job
User Avatar
Hi, I'm an experienced PHP developer. I can convert Java code into PHP. I need some sample input and output values for the following functions: hexStringToBytes bytesToHexString signedBytes2Float If you'd like to discuss your project with me, feel free to send me a message even when I appear offline. I typically reply within a few minutes when online and in a few hours when offline.
$20 USD in 1 day
5.0 (84 reviews)
6.6
6.6
User Avatar
Hello, I Develop PHP Websites from scratch or Customize the existing one or Fix errors for your current website in Laravel, CodeIgniter, WordPress, Ecommerce, Core PHP. What Do I Offer? PHP Scripting Front End Development/Customization Back End Development/Customization Responsive Design Bug Free/Clean Coding API Development API Integration UI/UX Design I can resolve:- Adding New Custom Functionalities Errors/Bugs Fixing Scripts Installation Database Integration Manage Cron jobs/task scheduling Payment Gateway (PayPal, Stripe, Payfast & many more.. ) What Technologies do I Work In? PHP MySQL Laravel CodeIgniter Wordpress WooCommerce Ecommerce HTML5 CSS3 Bootstrap Javascript Jquery Happy to have a quick chat or call to assist better. Look forward to hiring back. Cheers..!!
$20 USD in 7 days
5.0 (34 reviews)
6.1
6.1
User Avatar
Hello there. I will not write a long paragraph to inspire you. Just want to inform you that I have a huge background in this niche. I can advise you on everything from start to end in your case. I can complete the project in less than its required time. Discussion is always free, please let me know if my profile looks a match, and we can decide a time to talk. The proposed cost is estimate. I could give you an exact figure, timeframe, and what I expect to be able to accomplish if we talk. Thank you for reviewing my proposal. Looking forward to starting this project with you! Best Regards,
$35 USD in 4 days
4.9 (9 reviews)
5.0
5.0
User Avatar
Hello, Thanks for posting. I have rich experience for both of Java and PHP/Node.Js. I offer the fastest job.I hope to work with you. Thanks.
$20 USD in 7 days
5.0 (8 reviews)
5.0
5.0
User Avatar
Dear Client. How are you? I am an expert with rich experience in PHP, HTML, Node.js, React, Bootstrap, Express... I'm interested in your website and I'm sure you can get the best results for your needs. I would really like to have the opportunity to work with you. If you need to discuss with me, feel free to knock on me. Looking forward to hearing from you very soon. . Thank you
$20 USD in 7 days
5.0 (14 reviews)
4.3
4.3
User Avatar
Hi, there I have read your job posting very carefully and I understood what you want. I am 4+ years experienced expert of Full Stack React.js and Node.js and its related technologies such as Java Script, AngularJS, Express JS, Website designing, TypeScript, SEO, UX/UI design, J Query, MySQL, Bootstrap, HTML5, CSS3, Google Maps API, REST APIs etc. I'm familiar with agile project management tools including Slack, JIRA, Trello, Bitbucket, Github etc. I’ll show you my past work when we connect. So go ahead and shoot me a quick message/call here on Freelancer so we can chat a bit more about the project. I am available to start this project right now, I can work. I ensure the highest quality of product and 100% satisfaction through my work. Thanks & regards Lokesh
$20 USD in 7 days
4.9 (19 reviews)
4.1
4.1
User Avatar
Hi! Done, finished the conversion of the 4 function to Javascript (Node.js) while going through the code! Can share proof. I come with over a decade of experience with programming, Javascript is just more widely used. Hope to hear from you, Roland
$20 USD in 5 days
5.0 (13 reviews)
4.1
4.1
User Avatar
I'm a final year student who has a experience of almost 5 years on working of the java language. I've also learnt PHP and also done a project on this language. I'm also solving problems on Data Structures and Algorithms so i'm a good problem solver and can do this work in a more efficient way.
$20 USD in 7 days
0.0 (0 reviews)
0.0
0.0
User Avatar
Hello I am mastering in Java, Node js and PHP. I can help you. I can complete this task for shortest time. Best regards
$20 USD in 1 day
0.0 (0 reviews)
0.0
0.0
User Avatar
my experience and work makes me best for this work and to provide you the best output. Rest you will get to know after seeing my work.
$21 USD in 6 days
0.0 (0 reviews)
0.0
0.0

About the client

Flag of INDIA
Lucknow, India
5.0
1
Payment method verified
Member since May 17, 2022

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.