If possible align floating point representations for compile and FCH engines

Aperta
#462 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
57/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
python
Ambito
backend

Direzione di ricerca

Start by locating the compile and fch engines and how each formats floating point values in ASP strings. Compare their handling of the example value 0.9666666666666666; decide what representation should be consistent, then verify both engines produce it. The issue gives no file or test names, so finding the relevant code and expected precision will take some investigation.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

I am not sure if this should be considered a bug to be fixed, but the "fch" and "compile" engines use different precisions for their ASP string representations for floats:

For example, the "compile" engine has: val(float,float("0.9666666666666666")) where the "fch" , has val(float,float("0.966666667")).

Lingua principale
Python
Stelle
4
Fork
0
Merge medio
2g 9h
PR unite (30g)
19

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di potassco/constraint-handler

Tutte le issue di potassco/constraint-handler

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.