Groups
Sign in
Groups
CLIPSESG
Conversations
About
Send feedback
Help
format function expected exactly 2 arguments?
27 views
Skip to first unread message
Руслан Сорокин
unread,
Mar 22, 2024, 4:08:16 AM
Mar 22
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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 AM
Mar 22
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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 PM
Mar 22
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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