Socket
Book a DemoInstallSign in
Socket

crmf

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

crmf

0.1.3
bundlerRubygems
Version published
Maintainers
1
Created
Source

Correctly Rounded Math Functions for Ruby floats

CRMF is a Ruby C extension which provides correctly rounded math functions for Ruby floats. CRMF is using MPFR, and CRlibm when possible. Provided rounding modes are:

  • toward zero,
  • toward +infinity,
  • toward -infinity,
  • to nearest even.

Documentation

Documentation is available at https://www.rubydoc.info/gems/crmf.

Installation

# Install prerequisites
sudo apt install ruby ruby-dev build-essential libgmp-dev libmpfr-dev
# Install the gem from RubyGems
gem install crmf

Building from sources

# Install prerequisites
sudo apt install ruby ruby-dev build-essential libgmp-dev libmpfr-dev
# Clone this repository, build the gem then install it
git clone https://gitlab.ensta-bretagne.fr/bollenth/crmf.git
cd crmf
gem build crmf.gemspec
gem install --local crmf-0.1.1.gem
# Generate the documentation and open it
gem install yard redcarpet coderay
yard
firefox doc/index.html

FAQs

Package last updated on 07 Feb 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.