examples: fix the display of "," when there are no decimals

Signed-off-by: Romain Chanoir <chanoir.romain@courrier.uqam.ca>