Kayon-Marie / Kayon-Marie/SMPL_Interpreter

Add Decimal data type

Open
#12 2 comments 0 reactions 0 assignees View on GitHub
BDT extension good first issue
Dominant language
Java
Stars
1
Forks
2
PR merge metrics
No merged PRs in 30d

Description

Add a new basic data type(BDT) to SMPL called "Decimal" that uses the Java [BigDecimal](https://docs.oracle.com/javase/10/docs/api/java/math/BigDecimal.html) Class BTS for the option of using precise real number values.

proposed syntax:
> `#d0.4 // returns 0.4

- could provide more available ops to perform on Decimal than just the regular numeric ops real has.
- should be able to substitute Real for Decimal and convert Real to Decimal

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by locating the existing Real basic data type and the interpreter's handling of numeric operations and conversions. Review the proposed `#d0.4` syntax and Java BigDecimal reference, then clarify the supported operations, Real substitution, and Real-to-Decimal conversion. Done means Decimal is parsed and behaves as specified throughout those cases.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
compilers
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.