Coding help...

Do you have a question on how to do something.
Ask in here.

Posts: 126
Joined: Mon Oct 15, 2012 7:21 pm
PostPosted: Sun Aug 20, 2017 3:44 pm
So I'm looking to be able to set the longitude and latitude in our sunlocation code we have.

Sl.Init(-21.285833, 150.999722);

How would I be able to do that? Would it be something like this:

Int long=0;
Int long2=0;
For something like this:

So.Init(long.long2, 150.999722);

Thanks for the help.

Sent from my SM-N920T using Tapatalk
User avatar
Posts: 1424
Joined: Fri Mar 29, 2013 3:51 pm
Location: Oklahoma City
PostPosted: Mon Aug 21, 2017 3:45 am
Use a float.

Code: Select all
float variablename = 123.4567

Alternatively, if you don't need a variable, just change the number in the Sl.Init to whatever location you like.

Return to How do I code ...

Who is online

Users browsing this forum: Yahoo [Bot] and 2 guests