Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: MUN:POSITION:MAG and MUN:DISTANCE type mismatch #244

Open
baloan opened this issue Nov 15, 2013 · 2 comments · May be fixed by #245
Open

Bug: MUN:POSITION:MAG and MUN:DISTANCE type mismatch #244

baloan opened this issue Nov 15, 2013 · 2 comments · May be fixed by #245

Comments

@baloan
Copy link

baloan commented Nov 15, 2013

print MUN:POSITION:MAG.
11529348.0912514
print MUN:DISTANCE.
1.107228E+07
print MUN:POSITION:MAG - MUN:DISTANCE.
Can't subtract number from number.

Or am I missing something?

@Dunbaratu
Copy link
Contributor

In the past I found that adding or subtracting other terms can sometimes force KOS to cast types. (i.e. "" + ENCOUNTER turns encounter into a string regardless of whether it's "None" or not.).

Until this gets fixed perhaps you can try some variant of that and see what might work, i.e:
0 + MUN:POSITION:MAG.
or
0 + MUN:DISTANCE.

To see if something like that will force one to cast into the other's type.

@a1270 a1270 linked a pull request Nov 16, 2013 that will close this issue
@baloan
Copy link
Author

baloan commented Nov 16, 2013

print 0+MUN:POSITION:MAG.
11529348.0912514
print 0+MUN:DISTANCE.
Can't add number from number.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants