#!/usr/bin/python flo = 0.123456 print " myval: {:.3}".format(flo) + " formated"