-
Notifications
You must be signed in to change notification settings - Fork 223
Function to format variable as string #435
Copy link
Copy link
Closed
Labels
easyDifficulty level is easy and good for starting into this projectDifficulty level is easy and good for starting into this projectideaProposition of an idea and opening an issue to discuss itProposition of an idea and opening an issue to discuss ittopic: utilitiescontainers, strings, files, OS/environment integration, unit testing, assertions, logging, ...containers, strings, files, OS/environment integration, unit testing, assertions, logging, ...
Metadata
Metadata
Assignees
Labels
easyDifficulty level is easy and good for starting into this projectDifficulty level is easy and good for starting into this projectideaProposition of an idea and opening an issue to discuss itProposition of an idea and opening an issue to discuss ittopic: utilitiescontainers, strings, files, OS/environment integration, unit testing, assertions, logging, ...containers, strings, files, OS/environment integration, unit testing, assertions, logging, ...
Type
Fields
Give feedbackNo fields configured for issues without a type.
We can already format integer and logical variables to strings, but we don't have routines to write floating point values yet. Maybe we can implement a simple solution by wrapping the internal IO in a function as a separate module. The size of the buffer might be problematic since it can overflow in case a format specifier like
'(10000x, g0)'is passed.The actual implementation is pretty straight-forward: