URL: https://linuxfr.org/forums/general-general/posts/pr%C3%A9cision-%C3%A9trange-de-dc Title: Précision étrange de dc Authors: cho7 Date: 2009年01月09日T12:57:02+01:00 Tags: Score: 0 Bonjour les gens, j'ai une petite question à deux sous : cho7@cho7land:~$ dc -e "2k 100 400 620 / 100 * - p" 36.00 cho7@cho7land:~$ dc -e "3k 100 400 620 / 100 * - p" 35.500 cho7@cho7land:~$ dc -e "4k 100 400 620 / 100 * - p" 35.4900 cho7@cho7land:~$ dc -e "5k 100 400 620 / 100 * - p" 35.48400 Comment dc réalise-t-il ses arrondis ? Car je souhaite une précision de deux chiffres après la virgule, mais quand je fais ça il m'arrondit tout au dessus ! Si je pousse la précision, alors il commence à afficher ce que je veux... Si quelqu'un à une idée ! Merci.

AltStyle によって変換されたページ (->オリジナル) /