Skip to content

Commit

Permalink
Update to version 0.1.127 [skip-ci]
Browse files Browse the repository at this point in the history
Files changed:
M	setup.py
M	unitsnet_py/units/length.py
  • Loading branch information
haimkastner committed Sep 29, 2024
1 parent 8247f15 commit 5de159a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@

# The UnitNet definition version that the current package is based on to generate units classes
# see
definition_version = '5.58.0'
definition_version = '5.59.0'

setup_kwargs = {
'name': 'unitsnet-py',
'version': '0.1.126',
'version': '0.1.127',
'license': 'MIT',
'keywords': 'conversion, units-of-measure, units, quantities, unit-converter, converter, unit, measure, measures, measurement, measurements',
'description': 'A better way to hold unit variables and easily convert to the destination unit',
Expand Down
4 changes: 2 additions & 2 deletions unitsnet_py/units/length.py
Original file line number Diff line number Diff line change
Expand Up @@ -486,7 +486,7 @@ def __convert_from_base(self, from_unit: LengthUnits) -> float:
return (value / 9.46073047258e15)

if from_unit == LengthUnits.SolarRadius:
return (value / 6.95510000e+08)
return (value / 6.95700e8)

if from_unit == LengthUnits.Chain:
return (value / 20.1168)
Expand Down Expand Up @@ -617,7 +617,7 @@ def __convert_to_base(self, value: float, to_unit: LengthUnits) -> float:
return (value * 9.46073047258e15)

if to_unit == LengthUnits.SolarRadius:
return (value * 6.95510000e+08)
return (value * 6.95700e8)

if to_unit == LengthUnits.Chain:
return (value * 20.1168)
Expand Down

0 comments on commit 5de159a

Please sign in to comment.