Author Topic: numstr and strlonlat  (Read 540 times)

0 Members and 1 Guest are viewing this topic.

Charly

  • Newbie
  • *
  • Posts: 10
    • View Profile
numstr and strlonlat
« on: September 09, 2024, 10:15:43 PM »
Hallo forum,
this two functions don't work the way as they should do :D
See the attachments

Greetings from Switzerland
Charly

Jean

  • Administrator
  • Hero Member
  • *****
  • Posts: 1316
    • View Profile
Re: numstr and strlonlat
« Reply #1 on: September 09, 2024, 11:05:59 PM »
The first fails because you can't use caps in those strings.
Second is not clear, not enough info.
Greetings from Groningen Netherlands.

Charly

  • Newbie
  • *
  • Posts: 10
    • View Profile
Re: numstr and strlonlat
« Reply #2 on: September 10, 2024, 09:04:22 AM »
Hello Jean,
thank's for your quick response.

Yes, with lower caps, it works, but not correct enough for me ;D
The seconds are not considered in the calculation, only the rounded minutes.
So I will stay with my own sub-routine, that works, like I wish. :)

The second problem:
with numstr, I expect exactly the same, as it is in item[0] and obviously, it is not.
2436954.655556 ist not the same as 2436954.655555999838.

Till now, I importet more than 30 aaf-records and 95% shows a time, that is not correct.
e.g. 4:00:00 is 3:59:59. It's always just a second, but the numstr could be the answer.
A second in julian date is 0,0000115741, so woho knows...

Thanks and greetings from Sevelen ;)
Charly

Jean

  • Administrator
  • Hero Member
  • *****
  • Posts: 1316
    • View Profile
Re: numstr and strlonlat
« Reply #3 on: September 10, 2024, 09:30:09 AM »
For the numstr(), could you try
Code: [Select]
      jd += 0.5 / SECOND;

on line 87 in AAF.ab
It's a rounding error, maybe this helps.
Greetings from Groningen Netherlands.

Charly

  • Newbie
  • *
  • Posts: 10
    • View Profile
Re: numstr and strlonlat
« Reply #4 on: September 10, 2024, 09:55:06 AM »
Hi Jean,

 :D, in the aaf-file, I set the julian date with 0.0000057871 more (half a second in Julian days),
but sometimes the result was 4:00:01 instead of 4:00:00, I know, it's just a second, but calculating the AC or MC, there is sometims a difference of 12 seconds or more...
For an Aquarius with Mercury and Mars and Saturn in Capricorne very hard to accept ;D

Thank's
Charly

Jean

  • Administrator
  • Hero Member
  • *****
  • Posts: 1316
    • View Profile
Re: numstr and strlonlat
« Reply #5 on: September 10, 2024, 10:19:20 AM »
Try .2 / SECOND  ;D
that's .2 seconds.
With rounding errors, it's just a matter of pushing them a little over the border so to speak.
Greetings from Groningen Netherlands.

Charly

  • Newbie
  • *
  • Posts: 10
    • View Profile
Re: numstr and strlonlat
« Reply #6 on: September 10, 2024, 11:16:11 AM »
Hi Jean,
seams, we are on the same track ;D.

Now I'm going with the following "solution":

With the site de.planetcalc.com, I'm looking for the julian date with 8 decimal places and put it into the aaf-file.

When the import results in 3:59:59 instead of 4:00:00, I add +1 at the last decimal place, till now, it works fine an the difference to other astro-programms... I think, I can live with it :D

Greetings, Charly

Jean

  • Administrator
  • Hero Member
  • *****
  • Posts: 1316
    • View Profile
Re: numstr and strlonlat
« Reply #7 on: September 10, 2024, 11:31:06 AM »
Yes but we have slightly different approaches. To me, astrology is not about exactness to 0.0000001 degree. Of course it's critical when a planet in in one sign or the next, but other than that, i don't think astrology is about those very small fractions.
But it's good you found a solution, i did comparable things myself.
Greetings from Groningen Netherlands.

Charly

  • Newbie
  • *
  • Posts: 10
    • View Profile
Re: numstr and strlonlat
« Reply #8 on: September 10, 2024, 01:23:22 PM »
ohhh, yeah, how many times I heard this answer from astrologer and programmer around the world :D
but that's the point where I can't agree...
at least with the places we should use the seconds and today that's possible, even without costs (geonames.org)
I know a case where two daugthers were born in Rio, a small town in Brazil ;D, at the same time, the mothers tould...
One horoscope comes with AC in pisces, the other with AC in aries. The distance from one hospital to the other is about 50 km...

By the way, I found a solution to work with the seconds in Planetdance :D and that's great.

Greetings, Charly

Jean

  • Administrator
  • Hero Member
  • *****
  • Posts: 1316
    • View Profile
Re: numstr and strlonlat
« Reply #9 on: September 10, 2024, 01:28:27 PM »
Let's agree to disagree.  8)
My moon is in virgo so i like precision, but it has it's limits, that's just a fact, in the end i like usefulness better.
Greetings from Groningen Netherlands.

Charly

  • Newbie
  • *
  • Posts: 10
    • View Profile
Re: numstr and strlonlat
« Reply #10 on: September 10, 2024, 03:08:13 PM »
OK, no problem, my libra-moon will agree and he is looking for a beer-smily and can't find them :D
for other questions or wishes I have to change the board?

Jean

  • Administrator
  • Hero Member
  • *****
  • Posts: 1316
    • View Profile
Re: numstr and strlonlat
« Reply #11 on: September 10, 2024, 05:54:15 PM »
Oh no, no beer here???
Lousy board if you ask me.
But we can part in peace anyway.  8)
Greetings from Groningen Netherlands.