Project

kgl

0.0
No commit activity in last 3 years
No release in over 3 years
A gem for personal use.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 2.0
>= 0.12.2
>= 10.0
 Project Readme

KGL

A ruby gem for personal use.

Installation

$ gem install kgl

Usage

Integer#name(lang)

Returns the natural number expression for self in specific natural language. Available languages are the follows.

lang Language
"j" Japanese
"a" American English (a billion is 10**9)
"b" British English (a billion is 10**12)

Math.#ln(anti_logarithm)

An alias of original Math.#log. It returns the natural logarithm of anti_logarithm.

Math.#log(base, anti_logarithm=base.tap{base=Math::E})

Returns the logarithm of anti_logarithm to base base.

Math.#lg(anti_logarithm)

Returns the logarithm of anti_logarithm to base 2.

Float#to_r, String#to_r

Returns Rational value of self.

Integer#to_msm(fps=59.94)

Returns "[minutes]:[seconds].[milliseconds]" which corresponds to self frames. The submilliseconds will be rounded. fps is frames per second.

License

The gem is available as open source under the terms of the MIT License.

Code of Conduct

Everyone interacting in the KGL project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.