a guest Sep 16th, 2019 87 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ,Purpose,Number,Format,Output
  2. 0,Percentage with 3 decimal places,0.04341643859048916,{:.3%},4.342%
  3. 1,"Scientific format with exponent notation, 3 decimal places",0.04341643859048916,{:.3e},4.342e-02
  4. 2,"Three decimal places, right aligned",0.04341643859048916,{:>.3f},0.043
  5. 3,Two decimal places with negative sign,-0.9565835614095108,{:-.2f},-0.96
  6. 4,Two decimal places with +/- signs,0.04341643859048916,{:+.2f},+0.04
  7. 5,"Two decimal places with - sign, rigth aligned, filled, min width",0.04341643859048916,{:->12.2f},--------0.04
  8. 6,"Two decimal places, center aligned, filled, min width",0.04341643859048916,{:-^12.2f},----0.04----
  9. 7,"Two decimal places, center aligned, negative sign, min width",-0.9565835614095108,{:^-12.2f},   -0.96
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand