Calc HH:MM:SS to decimal

does anyone know if there is a formula for a cell that will transform the HH:mm:ss from another cell into a decimal equivalent?

example:

Cell A1 has 10:45:20

Cell A2 would change to 10.75

or

Cell A1 07:26:15

Cell A2 would change to 7.44 (or round it up 7.5)

Thanks

Russell

Try this in cell A2 "=VALUE(A1)*24"

see (for more info) point 4 of "[Tutorial] Ten concepts that every Calc user should know <https://forum.openoffice.org/en/forum/viewtopic.php?f=75&t=39529&sid=fddc43aa80457805f82271ef963f5d65>"
( https://forum.openoffice.org/en/forum/viewtopic.php?t=39529 )

4. Times in cells
A cell can contain a clock time, but the time is really stored as the corresponding fraction of a day. For example 6 AM is stored as 0.25 because it is ¼ of the way from midnight to midnight, but it is displayed as 6:00:00 AM. You can use Format → Cells → Numbers → Category → Time to display clock times in many formats, for example H:MM or HH:MM or HH:MM:SS, and any of these can have an optional AM/PM if you don't want to use 24-hour (military) time. A cell can contain both a date and a time. The value in the cell is the sum of the integer for the date and the fraction for the time. Format date/time cells by combining a date format and a clock time format. For cells which represent durations (difference of two clock times), the value could be more than one day, that is larger than 1, or even negative. The previously mentioned clock time formats display only the positive fraction; Calc adds or subtracts whole days until the time is between 00:00:00 and 23:59:59. To display a duration which exceeds 24 hours or is negative, you must enter the first part of the time format in brackets in the Format code field: [HH]:MM:SS or [HH]:MM or [HH] or [MM]:SS or [MM] or [SS]. There is no cell format which displays durations as days with hours/minutes/seconds. Be sure to remove the AM/PM format code from duration cells since they don't represent clock times, and always use one of the bracketed formats.

Think this is what you want.

=ROUND(A1/TIME(1,0,0)*4,0)/4

This actually worked incredibly well for my problem.

Great. And, now we know from the collective knowledge of this mailing list
how dates are stored and that there are many good ways to solve this type
of problem besides what I suggested. This list is like an ad hoc LO
training course.

And has given me ideas on using this feature for storing and handling angles in degrees:minutes:seconds to generate traverse tables.
Steve

It would be nice if there were a built in calc function to display a number as degrees of a circle, rather than using a formula to convert radians to degrees.