I have couple of line of code in .java file, What i want to do is i want to convert that lines of code to objective c lines..
Here are the lines:
(1)return 9.87*Math.sin(Math.toRadians(2.0 * B)) - 7.53*Math.cos(Math.toRadians(B)) - 1.5*Math.sin(Math.toRadians(B));
(2)
Calendar today = Calendar.getInstance();
Calendar now = Calendar.getInstance();
now.set(Calendar.DAY_OF_MONTH, 1);
now.set(Calendar.MONTH, 0);
now.set(Calendar.YEAR, today.get(Calendar.YEAR));
(today.getTimeInMillis() - now.getTimeInMillis())/(1000*60*60*24.0) + 1;
is there any online tool that convert this code to objective c codes ? or can you please help me to convert.
Thank you for reading and thanks in advance
0 comments:
Post a Comment