format function expected exactly 2 arguments?

27 views
Skip to first unread message

Руслан Сорокин

unread,
Mar 22, 2024, 4:08:16 AMMar 22
to CLIPSESG
Hi,

         CLIPS (6.4.1 4/8/23)
CLIPS> (format nil "%1.2" 0.97453288)
[ARGACCES1] Function 'format' expected exactly 2 arguments.
""
CLIPS>

This contradict to Basic Programming Guide!

Thank you for any help!
Sincerely,
  Ru

Ryan Johnston

unread,
Mar 22, 2024, 7:48:35 AMMar 22
to CLIPSESG
I believe that is because you do not have a flag in your second arg, so the third float arg has no where to substitute into.

CLIPS Support

unread,
Mar 22, 2024, 2:38:15 PMMar 22
to CLIPSESG
You are correct.

         CLIPS (6.4.1 4/8/23)
CLIPS> (format nil "%1.2f" 0.97453288)
"0.97"
CLIPS> 

Reply all
Reply to author
Forward
0 new messages