Float to_s hack for easy sprintf'ing Ruby script

SPONSORED LINKS

    Specification

  • Version:
  • File size: 0 KB
  • File name: 3810
  • Last update:
  • Platform: Windows / Linux
  • Language: Ruby
  • Price:Freeware
  • Company: jake3030 (View more)

Float to_s hack for easy sprintf'ing script description:




Publisher review:
Float to_s hack for easy sprintf'ing - Float Hacks to_s override Float Hacks:to_s override.I really hate using sprintf, mainly because i always have to go online and look up the syntax. I figured i could make that a little easier. Now you can print floats with different precision as easily as:4.123456.to_s(1) # => "4.1"4.123456.to_s(3) # => "4.12"4.123456.to_s(3) # => "4.123"4.123456.to_s(4) # => "4.1235" (Note the auto rounding from 4.123456)4.123456.to_s # => "4.123456"
Float to_s hack for easy sprintf'ing is a Ruby script for Snippets scripts design by jake3030. It runs on following operating system: Windows / Linux.

Operating system:
Windows / Linux

Latest script and internet news

222

222

22

Posted on: 18 Jul 2023 22:27 by A. Brown

111

111

111

Posted on: 18 Jul 2023 22:24 by A. Brown

The permanently active Push system offered by the new Google Chrome 42

The permanently active Push system offered by the new Google Chrome 42

Hacked By !Sc-sT

Posted on: 17 Mar 2015 07:57 by A. Brown

SPREAD THE WORD

User Rating


Rating: 2.2 out of 5
Based on 13 ratings. 13 user reviews.

  • Currently 2.15 out of 5
  • 1
  • 2
  • 3
  • 4
  • 5