numpy / numpy/numpy

Support full long double precision in __format__ (Trac #1783)

Open
#2,376 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

00 - Bug component: numpy._core
Dominant language
Python
Stars
32.8k
Forks
12.8k
Avg merge
1d 7h
Merged PRs (30d)
197

Description

Original ticket http://projects.scipy.org/numpy/ticket/1783 on 2011-03-25 by @mwiebe, assigned to unknown.

For #2271, support was added for the format() function to numpy scalars. This support downcasts long doubles to doubles, so cannot print long doubles at their full precision. This should be fixed with custom formatting code in that case.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at NumPy scalar format support added for #2271 and compare the current format() path for long doubles with the double path. The work is done when long doubles are formatted without downcasting and their full precision is preserved.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
data
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.