haskell / haskell/bytestring

RealFloat Zero Padded Exponent

Open
#643 7 comments 0 reactions 0 assignees View on GitHub
enhancement floating-point
Dominant language
Haskell
Stars
301
Forks
144
Avg merge
7d 22h
Merged PRs (30d)
1

Description

Some dxf files have doubles encoded in scientific notation with the exponent padded with zeros.

https://github.com/LibreCAD/LibreCAD/blob/8e10245994d8307a76cedc3cbffe471de88c8325/librecad/support/library/algoritm/alg27.dxf#L1560

I suggest adding a Bool to FGeneric and FScientific to allow for padding the exponent with zeros to the maximum precision of the exponent.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by locating the FGeneric and FScientific definitions and reviewing how they format exponents. Compare their behavior with the linked LibreCAD DXF example, then determine how zero padding to the maximum exponent precision should be exposed and tested.

Written by the indexing model from the issue text.

Assessment

Tech stack
haskell
Domain
tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.