Enhance SAM with features tailored to your specific needs! We collaborate with companies, universities, and organizations to privately fund new capabilities or analyses. Your investment drives innovation while benefiting the broader energy community. Email us to learn more.

field width in LK sprintf function?

  • shoedl
  • Topic Author
More
15 Oct 2015 11:48 #3819 by shoedl
field width in LK sprintf function? was created by shoedl
Hello -- I am trying to format output from an LK script into a nice text file. Does sprintf in LK support field width codes? I have not had success with either %20s or %6.1f. In either case, the output is "20s" or "6.1f" and not the underlying variable that I am trying to print.

Thanks,

Seth

Please Log in or Create an account to join the conversation.

  • Paul Gilman
More
15 Oct 2015 14:10 #3820 by Paul Gilman
Replied by Paul Gilman on topic field width in LK sprintf function?
Dear Seth,

The LK sprintf() function does not have a width field.

Best regards,
Paul.

Please Log in or Create an account to join the conversation.

Moderators: Paul Gilman
Powered by Kunena Forum