Bug 146669 - Function request: Calc equivalent of Excel "Converting Decimal Degrees..."
Summary: Function request: Calc equivalent of Excel "Converting Decimal Degrees..."
Status: RESOLVED INSUFFICIENTDATA
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
4.0.0.3 release
Hardware: x86-64 (AMD64) Windows (All)
: medium enhancement
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-01-09 17:09 UTC by G Whittaker
Modified: 2024-05-08 03:16 UTC (History)
0 users

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description G Whittaker 2022-01-09 17:09:00 UTC
Description:
Unable to find Calc equivalent of:
"Microsoft Excel Visual Basic for Applications custom function Converting Decimal Degrees to Degrees/Minutes/Seconds", and its converse.

Re-opened request from many years ago!

This function is increasingly used in GPS map references, navigation, and astronomy. I currently use an old scientific calculator to do the conversions in both directions, then type the data into Calc.
I am considering changing to Excel to automate this process, saving time. Please add this function to Calc, or if already present please update Help.

Steps to Reproduce:
1.N/A
2.
3.

Actual Results:
N/A

Expected Results:
N/A


Reproducible: Always


User Profile Reset: No



Additional Info:
Requested: 
Compatibility with current Excel for converting Decimal Degrees to Degrees/Minutes/Seconds, and vice versa.
Nothing relevant found in LibreOffice Help.
Comment 1 Mike Kaganski 2022-01-09 19:36:24 UTC
(In reply to G Whittaker from comment #0)
> "Microsoft Excel Visual Basic for Applications custom function Converting
> Decimal Degrees to Degrees/Minutes/Seconds", and its converse.

Could you please mention what that function name is in VBA, and where its documentation is?

Otherwise, you may use all spreadsheet functions in Basic, using respective interface [1]. That includes RADIANS [2] and its converse DEGREES [3].

[1] https://help.libreoffice.org/7.2/en-US/text/sbasic/shared/calc_functions.html?&DbPAR=BASIC
[2] https://help.libreoffice.org/7.2/en-US/text/scalc/01/04060106.html?DbPAR=CALC#bm_id3144702
[3] https://help.libreoffice.org/7.2/en-US/text/scalc/01/04060106.html?DbPAR=CALC#bm_id3145314
Comment 2 Mike Kaganski 2022-01-09 20:51:22 UTC
(In reply to G Whittaker from comment #0)
> to Degrees/Minutes/Seconds

Ah - of course RADIANS/DEGREES is not about Minutes/Seconds. But curiously, since degree/minute/second uses sexagesimal system, you may create a simple *custom* function (obviously, the "VBA custom function" you refer to is, as its description in comment 0 implies, *custom* - i.e., created by someone in some spreadsheet - it's not an Excel feature?).
Comment 3 Mike Kaganski 2022-01-09 21:08:51 UTC
Just a guess: is that https://docs.microsoft.com/en-us/office/troubleshoot/excel/convert-degrees-minutes-seconds-angles that you meant, which lists two functions that "Microsoft provides programming examples for illustration only"?

Have you tries to use them as is - Convert_Degree just work (even though it has a useless "With Application" and "End With" lines, that are not used, but still don't prevent it from working). Convert_Decimal from there exposes a bug  which I just filed - and only needs to add Trim() around everything inside CDbl calls to work correctly.
Comment 4 Buovjaga 2023-10-09 14:08:45 UTC
(In reply to Mike Kaganski from comment #3)
> Just a guess: is that
> https://docs.microsoft.com/en-us/office/troubleshoot/excel/convert-degrees-
> minutes-seconds-angles that you meant, which lists two functions that
> "Microsoft provides programming examples for illustration only"?
> 
> Have you tries to use them as is - Convert_Degree just work (even though it
> has a useless "With Application" and "End With" lines, that are not used,
> but still don't prevent it from working). Convert_Decimal from there exposes
> a bug  which I just filed - and only needs to add Trim() around everything
> inside CDbl calls to work correctly.

G Whittaker: Any comment on this?
Comment 5 QA Administrators 2024-04-07 03:14:35 UTC Comment hidden (obsolete)
Comment 6 QA Administrators 2024-05-08 03:16:08 UTC
Dear G Whittaker,

Please read this message in its entirety before proceeding.

Your bug report is being closed as INSUFFICIENTDATA due to inactivity and
a lack of information which is needed in order to accurately
reproduce and confirm the problem. We encourage you to retest
your bug against the latest release. If the issue is still
present in the latest stable release, we need the following
information (please ignore any that you've already provided):

a) Provide details of your system including your operating
   system and the latest version of LibreOffice that you have
   confirmed the bug to be present

b) Provide easy to reproduce steps – the simpler the better

c) Provide any test case(s) which will help us confirm the problem

d) Provide screenshots of the problem if you think it might help

e) Read all comments and provide any requested information

Once all of this is done, please set the bug back to UNCONFIRMED
and we will attempt to reproduce the issue. Please do not:

a) respond via email 

b) update the version field in the bug or any of the other details
   on the top section of our bug tracker

Warm Regards,
QA Team

MassPing-NeedInfo-FollowUp