From 1cbbd7b2417e7e77710bec38f8245c0d2231dddd Mon Sep 17 00:00:00 2001
From: Norbert Preining <norbert@preining.info>
Date: Thu, 2 Feb 2023 03:04:21 +0000
Subject: CTAN sync 202302020304

---
 macros/latex/contrib/l3kernel/l3color.dtx | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

(limited to 'macros/latex/contrib/l3kernel/l3color.dtx')

diff --git a/macros/latex/contrib/l3kernel/l3color.dtx b/macros/latex/contrib/l3kernel/l3color.dtx
index 6cda94918c..cbc0016786 100644
--- a/macros/latex/contrib/l3kernel/l3color.dtx
+++ b/macros/latex/contrib/l3kernel/l3color.dtx
@@ -43,7 +43,7 @@
 %    }^^A
 % }
 %
-% \date{Released 2023-01-24}
+% \date{Released 2023-02-01}
 %
 % \maketitle
 %
@@ -1150,7 +1150,7 @@
     { rgb }
     {
       \exp_args:Ne \@@_parse_model_hsb_aux:nnn
-        { \fp_eval:n { 6 * #1 } } {#2} {#3}
+        { \fp_eval:n { 6 * (#1) } } {#2} {#3}
     }
   }
 \cs_new:Npn \@@_parse_model_hsb_aux:nnn #1#2#3
@@ -1183,9 +1183,9 @@
 \cs_new:Npn \@@_parse_model_HSB:w #1 , #2 , #3 , #4 \s_@@_stop
   {
     \exp_args:Neee \@@_parse_model_hsb:nnn
-      { \fp_eval:n {#1 / 240} }
-      { \fp_eval:n {#2 / 240} }
-      { \fp_eval:n {#3 / 240} }
+      { \fp_eval:n { round((#1) / 240,5) } }
+      { \fp_eval:n { round((#2) / 240,5) } }
+      { \fp_eval:n { round((#3) / 240,5) } }
   }
 \cs_new:Npn \@@_parse_model_HTML:w #1 , #2 \s_@@_stop
   { \@@_parse_model_HTML_aux:w #1 0 0 0 0 0 0 \s_@@_stop }
@@ -1202,9 +1202,9 @@
   {
     { rgb }
     {
-      \fp_eval:n { round(#1 / 255,5) } ~
-      \fp_eval:n { round(#2 / 255,5) } ~
-      \fp_eval:n { round(#3 / 255,5) }
+      \fp_eval:n { round((#1) / 255,5) } ~
+      \fp_eval:n { round((#2) / 255,5) } ~
+      \fp_eval:n { round((#3) / 255,5) }
     }
   }
 %    \end{macrocode}
-- 
cgit v1.2.3

