Warning message

The Propeller Object Exchange system is decommissioned and replaced with a GitHub repository to house the same existing and future Propeller objects. As of 12/5/2019, this site is read-only. You can continue to browse and download objects from here for a limited time; however, please begin using the Parallax Propeller repository for future reference.
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0
Request group membership
By: created: 2007-12-14 | updated: 2013-05-02

This library object provides formatted string output and scan methods based on the standard C sprintf and sscanf functions. With this object you can convert byte, word and long types into binary, octal, decimal or hexadecimal formatted strings. You can specify the minimum and maximum number of columns to display your values, and these values can be left or right justified, with or without padded zeros.

Methods are included for the following C library functions: itoa, atoi, sprintf and sscanf. This implementation defines the functions bprintf and bscanf that take one, and only one, variable parameter. The original format string must be split into pieces that all have one format specifier. This normally is not a problem since most format strings consists of fixed text with format specifiers for values.


Original File Upload
Package icon Format.zip4.89 KB