Coding help...

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

Posts: 153
Joined: Mon Oct 15, 2012 7:21 pm
Location: Albany, GA
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: 1426
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: No registered users and 2 guests