I am currently multiplying two floats: 0.0004 * 0.0000000000012 = 4.8e-16
How to get the result in a normal format, i.e. without scientific notation, something like 0.0000000000324, and then round it to 5 numbers.
You can use string formatting .
a = 0.0004 * 0.0000000000012 # => 4.8e-16 '%.5f' % a # => "0.00000" pi = Math::PI # => 3.141592653589793 '%.5f' % pi # => "3.14159"
Source: https://habr.com/ru/post/913802/More articles:Call PowerShell Script with arguments from C # - c #https://translate.googleusercontent.com/translate_c?depth=1&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/913798/parse-solr-xml-files-to-solrinputdocument&usg=ALkJrhgI8_aJxu6qqmSavkzl8dXKi7IwwgC ++: calling the base class constructor with a computed argument - c ++iPhone Application name (springboard and target) of the list of allowed special characters - springboardSymfony2 Monolog Settings for registering email and files - symfonyGradle Application Plugin: Force Script to include lib / * in Classpath - gradlePHP pull random image from folder - arraysFinding the host and port of SMTP, knowing the email address using the JAVA API - javaThe difference between LIST_HEAD_INIT and INIT_LIST_HEAD - cMobile gestures in backbone.js - jquery-mobileAll Articles