Skip to content

Conversation

@dakersnar
Copy link
Owner

No description provided.

…sing

Ieee decimal basic setup and parsing

internal bool HasInvariantNumberSigns => _hasInvariantNumberSigns;
internal bool AllowHyphenDuringParsing => _allowHyphenDuringParsing;
public bool AllowHyphenDuringParsing => _allowHyphenDuringParsing;
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was a hack for the prototype. Another strategy is likely needed.

@dakersnar
Copy link
Owner Author

Some key things to review for this PR:

  • Organization of the Decimal32 file
  • Initial implementation work (includes encoding, parsing, and some rudimentary functions).
  • Organization of the internal IeeeDecimalNumber class. I tried to borrow ideas from Number in System.Private.CoreLib, but if we want this to look more like BigIntegerCalculator that could work too.

<ItemGroup>
<Compile Include="$(CommonTestPath)System\GenericMathHelpers.cs" Link="Common\System\GenericMathHelpers.cs" />
<Compile Include="BigIntegerTests.GenericMath.cs" />
<Compile Include="ComplexTests.GenericMath.cs" />
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@tannergooding Jeff mentioned you have a method for automatically generating Generic Math tests. Can you walk me through that process at some point?

@dakersnar dakersnar mentioned this pull request Feb 6, 2023
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.

3 participants