Skip to content

Add GetValueAsDecimal extension and AsDecimal to codegen template#77

Open
Selene29 wants to merge 1 commit intoMadsKirkFoged:masterfrom
Selene29:as-decimal
Open

Add GetValueAsDecimal extension and AsDecimal to codegen template#77
Selene29 wants to merge 1 commit intoMadsKirkFoged:masterfrom
Selene29:as-decimal

Conversation

@Selene29
Copy link

@Selene29 Selene29 commented Mar 7, 2026

Summary

  • Adds GetValueAsDecimal extension method to BaseUnitExtensions mirroring GetValueAsDouble
  • Adds AsDecimal(Unit) to the codegen template so all generated unit classes support higher-precision decimal output

Adds GetValueAsDecimal to BaseUnitExtensions mirroring GetValueAsDouble,
and adds AsDecimal to the codegen template so all generated unit classes
support higher-precision decimal output.
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 this pull request may close these issues.

1 participant