With web applications, all the time we face many problems in implementing logical solutions, or logic makes our codebase too long or unmanaged because mathematical formulas take up huge space in your codebase, so you can use this package Including general mathematical solutions and difficult mathematical solutions. In it, we have also put all the functions that JavaScript does not provide but other languages provide so that you can reduce your development time and increase your productivity.
Finally, SolverJS is compatible with CommonJs, TypeScript as well as CDNs.
This is a Node.js module available through the npm registry.
Before installing, download and install Node.js. Node.js 4.2.4 or higher is required.
If this is a brand new project, make sure to create a package.json
first with
the npm init
command.
Installation is done using the
npm install
command:
npm install solverjs
yarn add solverjs
// Load the full solverjs.
var solverjs = require('solverjs');
// The getFib return the n'th fibonacci number.
var ans = solverjs.getFib(8);
console.log(ans);
// The 8'th fibonacci number is 21.
// Output should be : 21
// Load the full solverjs.
import * as solverjs from 'solverjs';
// The getFib return the n'th fibonacci number.
let ans: number = solverjs.getFib(8);
console.log(ans);
// The 8'th fibonacci number is 21.
// Output should be : 21
Usage In Deno with Skypack
import solverjs from 'https://cdn.skypack.dev/solverjs?dts';
Usage In Browser with Skypack
<script type="module">
import solverjs from 'https://cdn.skypack.dev/solverjs?min';
</script>
The info() function is used to print a concise summary of all SolverJs methods.
// The info function are give the information about the solverjs methods.
solverjs.info();
// The output is : information about the module.
The Fibonacci numbers form a sequence such that each number is the sum of the two preceding numbers, starting from 0 and 1 getFib function to calculate the nth term of the Fibonacci sequence.
// The getFib function are return the n'th fibonacci number.
console.log(solverjs.getFib(8));
// The 8'th fibonacci number is : 8.
The GCD is a mathematical term for the Greatest Common Divisor of two or more numbers. It is the Greatest common divisor that completely divides two or more numbers without leavingany remainder.
console.log(solverjs.getGcd(12, 24));
// The output is : 12.
The Fibonacci numbers form a sequence such that each number is the sum of the two preceding numbers, starting from 0 and 1 we use the recursive printFib function that takes a number n as a parameter and display Fibonacci sequence uoto nth place . The first few Fibonacci numbers are: 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89…
console.log(solverjs.printFib(8));
// Fibonacci Series : 1 1 2 3 5 8 13 21
Function that takes a number and returns sum of the digit the given number.
console.log(solverjs.sumAllDigit(123));
// The output is : 6
reverseNumber function that takes in a number and returns its reversed number.
console.log(solverjs.reverseNumber(935));
// The output is : 539
An Armstrong number is a number such that the sum ! of its digits raised to the third power is equal to the number ! itself. 153 is an Armstrong number. 153 = (111)+ (555)+ (333)
// The isArmstrong function are return true/false according
// to the given number.
console.log(solverjs.isArmstrong(153));
// The output is : true
The sumOfN function returns the sum of n natural numbers.
console.log(solverjs.sumOfN(5));
// The output is : 15
Factorial is the product of a given positive integer multiplied by all lesser positive integers. Zero Factorial is interesting ... it is generally agreed that 0! = 1.
// The fac function are return the factoril of the given number.
console.log(solverjs.fac(5));
// The output is : 120
The function pow() is used to calculate the power raised to the base value. It takes two arguments. It returns the power raised to the base value.
// The pow function are return the power of x^y.
console.log(solverjs.pow(4, 2));
// The output is : 16
len function returns the number of characters in a given string or number. len takes just one argument, string or number.
console.log(solverjs.len(1234));
// The output is : 4
Prime numbers are the positive integers having only two factors, 1 and the integer itself.
// The isPrime function are return the true or false according
// to the number is prime or not
console.log(solverjs.isPrime(2));
// The output is : true
A Co-prime number is a set of numbers or integers which have only 1 as their common factor i.e. their highest common factor (HCF) will be 1.
// The isCoPrime function are return the true/false
// acording the both number are co-prime or not.
console.log(solverjs.isCoPrime(13, 34));
// The output is : true
A Krishnamurthy number is a number whose sum of the factorial of digits is equal to the number itself. For example 145, sum of factorial of each digits: 1! + 4! + 5! = 1 + 24 + 120 = 145 isKishnamurthyNumbrer is a boolean function that take number as agrument and return true/false.
console.log(solverjs.isKishnamurthyNumber(145));
// The output is : true
The average calculated by avg is the arithmetic mean (the sum of the values divided by the number of values).
// Average - is a term mid of the all given data point.
console.log(solverjs.avg([5, 6, 8, 9, 3]));
// The output is : 6.2
mod function return absolute value of a number is the number without its sign.
console.log(solverjs.mod(-145));
// The output is : 145
This method relies on the number of words present in the input string to count the number of words as every word in a sentence is separated by a space.
// Word Counter is count he word of the given string.
// provide seperator.
console.log(solverjs.wordCount('alsdjf lasjfd lsjf', ' '));
// The output is : 3
A leap year is a year with 366 days instead of 365; every 4 years in February one extra day is added. The isLeap year check the given year is leap or not and return true/false.
console.log(solverjs.isLeap(2021));
// The output is : false
Least Common Multiple(LCM) is a method to find the smallest common multiple between any two or more numbers. A common multiple is a number which is a multiple of two or more numbers. lcm function takes two numbers as argument and return lcm of these number.
console.log(solverjs.lcm(12, 3));
// The output is : 12
The greatest number which divides each of the two or more numbers is called HCF or Highest Common Factor. It is also called the Greatest Common Measure(GCM) and Greatest Common Divisor(GCD). hcf function takes two numbers as argument and return hcf of these number.
console.log(solverjs.hcf(72, 23));
// The output is : 1
ASCII (which stands for American Standard Code for Information Interchange) is a character encoding standard for text files in computers and other devices. ASCII is a subset of Unicode and is made up of 128 symbols in the character set. ascii method is returning equivalent numeric ascii value for the given character.
// Find the ascii value of the given character.
console.log(solverjs.ascii('A'));
// The output is : 65
The capitalize method converts any string in capitalize form for also known as title case form.
// Converts any string to Title case string.
console.log(solverjs.capitalize('javascript'));
// The output is : Javascript
Return count of the substring in the string.
// Return substring count.
console.log(solverjs.count('This is a string.', 'is'));
// The output is : 2
The method reverse the given string.
console.log(solverjs.reverse('abcde'));
// The output is : edcba
A palindrome is a word, number, phrase, or other sequence of characters which reads the same backward as forward, such as madam or racecar. The isPalindrome check the given stirng is palindrome or not.
console.log(solverjs.isPalindrome('abcba'));
// The output is : true
A permutation is an arrangement of objects in a definite order. The members or elements of sets are arranged here in a sequence or linear order. permutation function take one string argument and return all combination of string.
console.log(solverjs.permutation('abc'));
// The output is : [ 'abc', 'acb', 'bac', 'bca', 'cab', 'cba' ]
The alternativeStringArrange takes two string argument alternative merge the character and return new merge string.
console.log(solverjs.alternativeStringArrange('abcde', 'xyz'));
// The output is : axbyczde
// Time Complexity O(n)
The phoneValidator takes number as argument and check the numebr is a valid or not , return true/false.
console.log(solverjs.phoneValidator('+910011223344'));
// The output is : true
The phoneExtractor takes string as argument ,find the phone number in stirng and return phone number.
console.log(solverjs.phoneExtractor('this is no. +910011223344'));
// The output is : +910011223344
Alphanumericals are a combination of alphabetical and numerical characters, and is used to describe the collection of Latin letters.
// The isAlNum method check the given string
// alphanumeric or not return boolean value.
console.log(solverjs.isAlNum('55x'));
// The output is : true
The isAlpha method check the givne string alpha or not return boolean value.
console.log(solverjs.isAlpha('55'));
// The output is : false
The numToAscii method that converts a decimal number into ASCII or char value.
console.log(solverjs.numToAscii(97));
// The output is : a
isDecimal is a function that returns true if all characters in a string are decimal. If all characters are not decimal then it returns false.
console.log(solverjs.isDecimal('55'));
// The output is : true
The isLower method are used for check the all charector in lower case form or not.
console.log(solverjs.isLower('lower'));
// The output is : true
The isUpper method are used for check the all charector in upper case form or not.
console.log(solverjs.isUpper('UPPER'));
// The output is : true
The isTitle method returns True if all words in a text start with a upper case letter, AND the rest of the word are lower case letters, otherwise False.
// The isTitle method are used for check the
// given string in title form or not.
console.log(solverjs.isTitle('Title'));
// The output is : true
The isSpace method returns True if all the characters in a string are whitespaces, otherwise False.
// The isSpace method are used for check the given
// string is all character in space or not.
console.log(solverjs.isSpace(' '));
// The output is : true
The token method provides a unique token value for any kind of authentication in string format.
console.log(solverjs.token());
// The output is : ~VYVHg1103007iThJRPqrxkEZQ (unique token)
randomint function takes two argument as a range and generates a random integer between the given range.
console.log(solverjs.randomInt(5, 9));
// The output is : 7
remainder returns the remainder of a number divided by another number. remainder function take 2 number as a argument and return the remainder (first number divide by Second number). remember second number can't be 0,function returns an error as you cannot divide by 0.
// Use to find the remainder or modulo division.
console.log(solverjs.remainder(5, 2));
// The output is : 1
The Fibonacci numbers form a sequence such that each number is the sum of the two preceding numbers, starting from 0 and 1. isFibonacci is a boolean function that take one number as argument , checks the number is a fibonacci number or not and return true/false;
console.log(solverjs.isFibonacci(5));
// The output is : true
The max method returns the maximum value from the given array.
console.log(solverjs.max([2, 5, 6, 3]));
// The output is : 6
The min method returns the minimum value from the given array.
console.log(solverjs.min([2, 5, 6, 3]));
// The output is : 2
In mathematics, the power set (or powerset) of a set S is the set of all subsets of S, including the empty set and S itself.
console.log(solverjs.getPowerset([1, 2, 3]));
// The output is : [[], [ 1 ], [ 2 ], [ 1, 2 ], [ 3 ], [ 1, 3 ], [ 2, 3 ], [ 1, 2, 3 ]]
getGST Method calculates GST percent on the given gross cost and GST percentage.
console.log(solverjs.getGST(253, 18));
// The output is : { netCost: 298.54, tex: 45.54 }
We all know we have very frequently is number system conversion in programming, our number system conversion methods provide all type of conversion of the numbers systems.
- Hexadecimal Number System [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, F ]
- Decimal Number System [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 ]
- Octal Number System [ 0, 1, 2, 3, 4, 5, 6, 7 ]
- Binary Number System [ 0, 1 ]
// The hexToDec function are take a hexadecimal value and return
// decimal value.
console.log(solverjs.hexToDec(18));
// The output is : 24
// The hexToOct function are take a hexadecimal value and return
// octal value.
console.log(solverjs.hexToOct(18));
// The output is : 30
// The hexToBin function are take a hexadecimal value and return
// binary value.
console.log(solverjs.hexToBin(18));
// The output is : 11000
// The decToHex function are take a decimal value and return
// hexadecimal value.
console.log(solverjs.decToHex(18));
// The output is : 12
// The decToOct function are take a decimal value and return
// octal value.
console.log(solverjs.decToOct(18));
// The output is : 22
// The decToBin function are take a decimal value and return
// binary value.
console.log(solverjs.decToBin(18));
// The output is : 10010
// The octToHex function are take a octal value and return
// hexadecimal value.
console.log(solverjs.octToHex(11236));
// The output is : 129E
// The octToDec function are take a octal value and return
// decimal value.
console.log(solverjs.octToDec(11236));
// The output is : 4766
// The octToBin function are take a octal value and return
// binary value.
console.log(solverjs.octToBin(11236));
// The output is : 1001010011110
// The binToHex function are take a binary value and return
// hexadecimal value.
console.log(solverjs.binToHex('010110101'));
// The output is : B5
// The binToDec function are take a binary value and return
// decimal value.
console.log(solverjs.binToDec('010110101'));
// The output is : 181
// The binToOct function are take a binary value and return
// octal value.
console.log(solverjs.binToOct('010110101'));
// The output is : 265
The length conversion is used very frequently in the many time in code base so if you want a solution use this method.
The length has many types but in this time we see only some very frequently used.
- Kilometer(km)
- Meter(me)
- Centimeter(cm)
- Millimeter(mm)
- Micormeter(Um)
- Nanometer(nm)
- Yard(yd)
- Foot(ft)
- Inch(in)
// the kmToMe() function are take kilometer value and return there
// meter value.
console.log(solverjs.kmToMe(1));
// The output is : 1000
// the kmToCm() function are take kilometer value and return there
// centimeter value.
console.log(solverjs.kmToCm(1));
// The output is : 100000
// the kmToMm() function are take kilometer value and return there
// millimeter value.
console.log(solverjs.kmToMm(1));
// The output is : 1000000
// the kmToUm() function are take kilometer value and return there
// micrometer value.
console.log(solverjs.kmToUm(1));
// The output is : 1000000000
// the kmToNm() function are take kilometer value and return there
// nanometer value.
console.log(solverjs.kmToNm(1));
// The output is : 1000000000000
// the kmToYd() function are take kilometer value and return there
// Yard value.
console.log(solverjs.kmToYd(1));
// The output is : 1094
// the kmToFt() function are take kilometer value and return there
// Foot value.
console.log(solverjs.kmToFt(1));
// The output is : 3281
// the kmToIn() function are take kilometer value and return there
// Inch value.
console.log(solverjs.kmToIn(1));
// The output is : 39370
// the meToKm() function are take meter value and return there
// kilometer value.
console.log(solverjs.meToKm(1));
// The output is : 0.001
// the meToCm() function are take meter value and return there
// centimeter value.
console.log(solverjs.meToCm(1));
// The output is : 100
// the meToMm() function are take meter value and return there
// millimeter value.
console.log(solverjs.meToMm(1));
// The output is : 1000
// the meToUm() function are take meter value and return there
// micrometres value.
console.log(solverjs.meToUm(1));
// The output is : 1000000
// the meToNm() function are take meter value and return there
// nanometre value.
console.log(solverjs.meToNm(1));
// The output is : 1000000000
// the meToYd() function are take meter value and return there
// yard value.
console.log(solverjs.meToYd(1));
// The output is : 1.094
// the meToFt() function are take meter value and return there
// foot value.
console.log(solverjs.meToFt(1));
// The output is : 3.281
// the meToIn() function are take meter value and return there
// inch value.
console.log(solverjs.meToIn(1));
// The output is : 39.37
// the cmToKm() function are take centimeter value and return there
// kilometer value.
console.log(solverjs.cmToKm(1));
// The output is : 0.00001
// the cmToMe() function are take centimeter value and return there
// meter value.
console.log(solverjs.cmToMe(1));
// The output is : 0.01
// the cmToMm() function are take centimeter value and return there
// millimeter value.
console.log(solverjs.cmToMm(1));
// The output is : 10
// the cmToUm() function are take centimeter value and return there
// micrometres value.
console.log(solverjs.cmToUm(1));
// The output is : 10000
// the cmToNm() function are take centimeter value and return there
// nanometre value.
console.log(solverjs.cmToNm(1));
// The output is : 10000000
// The cmToYd() function are take centimeter value and return there
// yard value.
console.log(solverjs.cmToYd(1));
// The output is : 0.010936132983377079
// the cmToFt() function are take centimeter value and return there
// foot value.
console.log(solverjs.cmToFt(1));
// The output is : 0.03280839895013123
// the cmToIn() function are take centimeter value and return there
// inch value.
console.log(solverjs.cmToIn(1));
// The output is : 0.39370078740157477
// the mmToKm() function are take millimetre value and return there
// kilometer value.
console.log(solverjs.mmToKm(1));
// The output is : 0.000001
// the mmToMe() function are take millimetre value and return there
// meter value.
console.log(solverjs.mmToMe(1));
// The output is : 0.001
// the mmToMm() function are take millimetre value and return there
// centimeter value.
console.log(solverjs.mmToCm(1));
// The output is : 0.1
// the mmToUm() function are take millimetre value and return there
// micrometres value.
console.log(solverjs.mmToUm(1));
// The output is : 1000
// the mmToNm() function are take millimetre value and return there
// nanometre value.
console.log(solverjs.mmToNm(1));
// The output is : 1000000
// the mmToYd() function are take millimetre value and return there
// yard value.
console.log(solverjs.mmToYd(1));
// The output is : 0.0010940919037199124
// the mmToFt() function are take millimetre value and return there
// foot value.
console.log(solverjs.mmToFt(1));
// The output is : 0.003278688524590164
// the mmToIn() function are take millimetre value and return there
// inch value.
console.log(solverjs.mmToIn(1));
// The output is : 0.03937007874015748
// the umToKm() function are take micrometre value and return there
// kilometer value.
console.log(solverjs.umToKm(1));
// The output is : 0.000000001
// the umToMe() function are take micrometre value and return there
// meter value.
console.log(solverjs.umToMe(1));
// The output is : 0.000001
// the umToMm() function are take micrometre value and return there
// centimeter value.
console.log(solverjs.umToCm(1));
// The output is : 0.0001
// the umToMm() function are take micrometre value and return there
// millimetre value.
console.log(solverjs.umToMm(1));
// The output is : 0.001
// the umToNm() function are take micrometre value and return there
// nanometre value.
console.log(solverjs.umToNm(1));
// The output is : 1000
// the umToYd() function are take micrometre value and return there
// yard value.
console.log(solverjs.umToYd(1));
// The output is : 0.0000010936132983377078
// the umToFt() function are take micrometre value and return there
// foot value.
console.log(solverjs.umToFt(1));
// The output is : 0.0000032808398950131235
// the umToIn() function are take micrometre value and return there
// inch value.
console.log(solverjs.umToIn(1));
// The output is : 0.00003937007874015748
// the nmToKm() function are take nanometer value and return there
// kilometer value.
console.log(solverjs.nmToKm(1));
// The output is : 0.000000000001
// the nmToMe() function are take nanometer value and return there
// meter value.
console.log(solverjs.nmToMe(1));
// The output is : 0.000000001
// the nmToMm() function are take nanometer value and return there
// centimeter value.
console.log(solverjs.nmToCm(1));
// The output is : 0.0000001
// the nmToMm() function are take nanometer value and return there
// millimetre value.
console.log(solverjs.nmToMm(1));
// The output is : 0.000001
// the nmToNm() function are take nanometer value and return there
// micrometre value.
console.log(solverjs.nmToUm(1));
// The output is : 0.001
// the nmToYd() function are take nanometer value and return there
// yard value.
console.log(solverjs.nmToYd(1));
// The output is : 1.0936132983377077e-9
// the nmToFt() function are take nanometer value and return there
// foot value.
console.log(solverjs.nmToFt(1));
// The output is : 3.2808398950131233e-9
// the nmToIn() function are take nanometer value and return there
// inch value.
console.log(solverjs.nmToIn(1));
// The output is : 3.937007874015748e-8
// the ydToKm() function are take Yard value and return there
// kilometer value.
console.log(solverjs.ydToKm(1));
// The output is : 0.0009140767824497258
// the ydToMe() function are take Yard value and return there
// meter value.
console.log(solverjs.ydToMe(1));
// The output is : 0.9140767824497257
// the ydToCm() function are take Yard value and return there
// centimeter value.
console.log(solverjs.ydToCm(1));
// The output is : 91.44
// the ydToMm() function are take Yard value and return there
// millimetre value.
console.log(solverjs.ydToMm(1));
// The output is : 914
// the ydToUm() function are take Yard value and return there
// micrometre value.
console.log(solverjs.ydToUm(1));
// The output is : 914400
// the ydToNm() function are take Yard value and return there
// nanometre value.
console.log(solverjs.ydToNm(1));
// The output is : 914400000
// the ydToFt() function are take Yard value and return there
// foot value.
console.log(solverjs.ydToFt(1));
// The output is : 3
// the ydToIn() function are take Yard value and return there
// inch value.
console.log(solverjs.ydToIn(1));
// The output is : 36
// the ftToKm() function are take foot value and return there
// kilometer value.
console.log(solverjs.ftToKm(1));
// The output is : 0.00030478512648582747
// the ftToMe() function are take foot value and return there
// meter value.
console.log(solverjs.ftToMe(1));
// The output is : 0.30478512648582745
// the ftToCm() function are take foot value and return there
// centimeter value.
console.log(solverjs.ftToCm(1));
// The output is : 30.48
// the ftToMm() function are take foot value and return there
// millimetre value.
console.log(solverjs.ftToMm(1));
// The output is : 305
// the ftToUm() function are take foot value and return there
// micrometre value.
console.log(solverjs.ftToUm(1));
// The output is : 304800
// the ftToNm() function are take foot value and return there
// nanometre value.
console.log(solverjs.ftToNm(1));
// The output is : 304800000
// the ftToYd() function are take foot value and return there
// yard value.
console.log(solverjs.ftToYd(1));
// The output is : 0.3333333333333333
// the ftToIn() function are take foot value and return there
// inch value.
console.log(solverjs.ftToIn(1));
// The output is : 12
// the inToKm() function are take inch value and return there
// kilometer value.
console.log(solverjs.inToKm(1));
// The output is : 0.0000254000508001016
// the inToMe() function are take inch value and return there
// meter value.
console.log(solverjs.inToMe(1));
// The output is : 0.025400050800101603
// the inToCm() function are take inch value and return there
// centimeter value.
console.log(solverjs.inToCm(1));
// The output is : 2.54
// the inToMm() function are take inch value and return there
// millimetre value.
console.log(solverjs.inToMm(1));
// The output is : 25.4
// the inToUm() function are take inch value and return there
// micrometre value.
console.log(solverjs.inToUm(1));
// The output is : 25400
// the inToNm() function are take inch value and return there
// nanometre value.
console.log(solverjs.inToNm(1));
// The output is : 25400000
// the inToYd() function are take inch value and return there
// yard value.
console.log(solverjs.inToYd(1));
// The output is : 0.027777777777777776
// the inToFt() function are take inch value and return there
// foot value.
console.log(solverjs.inToFt(1));
// The output is : 0.08333333333333333
Temperature conversion is one of the most used methods for weather report casting the temperature conversion method gives you all the popular temperature standard conversion methods.
All popular types.
- Celsius
- Fahrenheit
- Kelvin
// the celToFah() function are take the temperature value
// in celsius and convert to the temperature value in fahrenheit.
console.log(solverjs.celToFah(0));
// The output is : 32
// the celToKel() function are take the temperature value
// in celsius and convert to the temperature value in kelvin.
console.log(solverjs.celToKel(0));
// The output is : 273.15
// the fahToCel() function are take the temperature value
// in fahrenheit and convert to the temperature value in celsius.
console.log(solverjs.fahToCel(0));
// The output is : -17.77777777777778
// the fahToKel() function are take the temperature value
// in fahrenheit and convert to the temperature value in kelvin.
console.log(solverjs.fahToKel(0));
// The output is : 255.3722222222222
// the kelToCel() function are take the temperature value
// in kelvin and convert to the temperature value in celsius.
console.log(solverjs.kelToCel(0));
// The output is : -273.15
// the kelToFah() function are take the temperature value
// in kelvin and convert to the temperature value in fahrenheit.
console.log(solverjs.kelToFah(0));
// The output is : -459.66999999999996
Area conversion is more used if you create a site to manage land and area. If you want to make your work easier then we have written some tools that you can use
All popular types.
- Square kilometer
- Square meter
- Square yard
- Square foot
- Square inch
- Hectare
- Acre
// the sqKmToSqMe() function are take the square kilometer value
// and convert to the square meter value.
console.log(solverjs.sqKmToSqMe(1))
// The output is : 1000000
// the sqKmToSqYd() function are take the square kilometer value
// and convert to the square yard value.
console.log(solverjs.sqKmToSqYd(1))
// The output is : 1196000
// the sqKmToSqFt() function are take the square kilometer value
// and convert to the square foot value.
console.log(solverjs.sqKmToSqFt(1))
// The output is : 10760000
// the sqKmToSqIn() function are take the square kilometer value
// and convert to the square inch value.
console.log(solverjs.sqKmToSqIn(1))
// The output is : 1550000000
// the sqKmToHect() function are take the square kilometer value
// and convert to the hectare value.
console.log(solverjs.sqKmToHect(1))
// The output is : 100
// the sqKmToAcre() function are take the square kilometer value
// and convert to the acre value.
console.log(solverjs.sqKmToAcre(1))
// The output is : 247
// the sqMeToSqMe() function are take the square meter value
// and convert to the square meter value.
console.log(solverjs.sqMeToSqKm(1))
// The output is : 0.000001
// the sqMeToSqYd() function are take the square meter value
// and convert to the square yard value.
console.log(solverjs.sqMeToSqYd(1))
// The output is : 1.196
// the sqMeToSqFt() function are take the square meter value
// and convert to the square foot value.
console.log(solverjs.sqMeToSqFt(1))
// The output is : 10.764
// the sqMeToSqIn() function are take the square meter value
// and convert to the square inch value.
console.log(solverjs.sqMeToSqIn(1))
// The output is : 1550
// the sqMeToHect() function are take the square meter value
// and convert to the hectare value.
console.log(solverjs.sqMeToHect(1))
// The output is : 0.0001
// the sqMeToAcre() function are take the square meter value
// and convert to the acre value.
console.log(solverjs.sqMeToAcre(1))
// The output is : 0.00024709661477637757
// the sqYdToSqKm() function are take the square yard value
// and convert to the square meter value.
console.log(solverjs.sqYdToSqKm(1))
// The output is : 8.361204013377926e-7
// the sqYdToSqMe() function are take the square yard value
// and convert to the square meter value.
console.log(solverjs.sqYdToSqMe(1))
// The output is : 0.8361204013377926
// the sqYdToSqFt() function are take the square yard value
// and convert to the square foot value.
console.log(solverjs.sqYdToSqFt(1))
// The output is : 9
// the sqYdToSqIn() function are take the square yard value
// and convert to the square inch value.
console.log(solverjs.sqYdToSqIn(1))
// The output is : 1296
// the sqYdToHect() function are take the square yard value
// and convert to the hectare value.
console.log(solverjs.sqYdToHect(1))
// The output is : 0.00008361204013377926
// the sqYdToAcre() function are take the square yard value
// and convert to the acre value.
console.log(solverjs.sqYdToAcre(1))
// The output is : 0.00020661157024793388
// the sqFtToSqKm() function are take the square foot value
// and convert to the square kilometer value.
console.log(solverjs.sqFtToSqKm(1))
// The output is : 9.29368029739777e-8
// the sqFtToSqMe() function are take the square foot value
// and convert to the square meter value.
console.log(solverjs.sqFtToSqMe(1))
// The output is : 0.0929022668153103
// the sqFtToSqYd() function are take the square foot value
// and convert to the square yard value.
console.log(solverjs.sqFtToSqYd(1))
// The output is : 0.1111111111111111
// the sqFtToSqIn() function are take the square foot value
// and convert to the square inch value.
console.log(solverjs.sqFtToSqIn(1))
// The output is : 144
// the sqFtToHect() function are take the square foot value
// and convert to the hectare value.
console.log(solverjs.sqFtToHect(1))
// The output is : 0.000009290312990644655
// the sqFtToAcre() function are take the square foot value
// and convert to the acre value.
console.log(solverjs.sqFtToAcre(1))
// The output is : 0.00002295684113865932
// the sqInToSqKm() function are take the square inch value
// and convert to the square kilometer value.
console.log(solverjs.sqInToSqKm(1))
// The output is : 6.451612903225806e-10
// the sqInToSqMe() function are take the square inch value
// and convert to the square meter value.
console.log(solverjs.sqInToSqMe(1))
// The output is : 0.0006451612903225806
// the sqInToSqYd() function are take the square inch value
// and convert to the square yard value.
console.log(solverjs.sqInToSqYd(1))
// The output is : 0.0007716049382716049
// the sqInToSqFt() function are take the square inch value
// and convert to the square foot value.
console.log(solverjs.sqInToSqFt(1))
// The output is : 0.006944444444444444
// the sqInToHect() function are take the square inch value
// and convert to the hectare value.
console.log(solverjs.sqInToHect(1))
// The output is : 6.451612903225807e-8
// the sqInToAcre() function are take the square inch value
// and convert to the acre value.
console.log(solverjs.sqInToAcre(1))
// The output is : 1.5941335883947074e-7
// the hectToSqKm() function are take the hectare value
// and convert to the square kilometer value.
console.log(solverjs.hectToSqKm(1))
// The output is : 0.01
// the hectToSqMe() function are take the hectare value
// and convert to the square meter value.
console.log(solverjs.hectToSqMe(1))
// The output is : 10000
// the hectToSqYd() function are take the hectare value
// and convert to the square yard value.
console.log(solverjs.hectToSqYd(1))
// The output is : 11960
// the hectToSqFt() function are take the hectare value
// and convert to the square foot value.
console.log(solverjs.hectToSqFt(1))
// The output is : 107639
// the hectToSqIn() function are take the hectare value
// and convert to the square inch value.
console.log(solverjs.hectToSqIn(1))
// The output is : 15500000
// the hectToAcre() function are take the hectare value
// and convert to the acre value.
console.log(solverjs.hectToAcre(1))
// The output is : 2.471
// the acreToSqKm() function are take the acre value
// and convert to the square kilometer value.
console.log(solverjs.acreToSqKm(1))
// The output is : 0.004048582995951417
// the acreToSqMe() function are take the acre value
// and convert to the square meter value.
console.log(solverjs.acreToSqMe(1))
// The output is : 4047
// the acreToSqYd() function are take the acre value
// and convert to the square yard value.
console.log(solverjs.acreToSqYd(1))
// The output is : 4840
// the acreToSqFt() function are take the acre value
// and convert to the square foot value.
console.log(solverjs.acreToSqFt(1))
// The output is : 43560
// the acreToSqIn() function are take the acre value
// and convert to the square inch value.
console.log(solverjs.acreToSqIn(1))
// The output is : 6273000
// the acreToHect() function are take the acre value
// and convert to the hectare value.
console.log(solverjs.acreToHect(1))
// The output is : 0.4046944556859571
// The utility methods are very helpful in many small projects.
Defined method.
- dateToDay
- dobToAge
- keywordExtractor
- contatinSpecial
- isKeywordExists
- checkCamelCase
- checkFlatCase
- checkKebabCase
- checkPascalCase
- checkSnakeCase
- URLShortener
- railwayTimeConversion
- sort
- ext
// The dateToDay method takes a string date and returns the
// specific week-day.
console.log(solverjs.dateToDay('01/01/2000'));
// The output is : Saturday
// The dobToAge() method takes a string date and returns
// data delta along with the current date in a string.
console.log(solverjs.dobToAge('01/01/2000'));
// The output is : 21 years 5 months and 29 days
// The timeDelta method is used for finding the
// difference between the two dates, if the
// difference is not valid the return false.
console.log(dateDelta("Dec 20, 2021 12:00:00", "Dec 25, 2021 12:00:00"))
// The output is : { days: 5, hours: 0, minutes: 0, seconds: 0 }
// The keywordExtractor() method is take stirng and
// return the keyword array.
console.log(solverjs.keywordExtractor('This is a special stirng with 5news char.'));
// The output is : [ 'special', 'stirng' ]
// The isKeywordExists() method is take two string
// argument find second to first string.
console.log(solverjs.isKeywordExists('This is a string', 'is');
// The output is : true
// The contatinSpecial() method is take a string
// and return true, if the string containe special later,
// else return false.
console.log(solverjs.contatinSpecial("My $Name is "));
// The output is : true
// CheckCamelCase method checks the given string is in camelCase or not.
console.log(solverjs.checkCamelCase("myVar"));
// The output is : true
// CheckFlatCase method checks the given string is in flatcase or not.
console.log(solverjs.checkFlatCase("myvar"));
// The output is : true
// CheckKebabCase method checks the given string is in kebab-case or not.
console.log(solverjs.checkKebabCase("my-var"));
// The output is : true
// CheckPascalCase method checks the given string is in PascalCase or not.
console.log(solverjs.checkPascalCase("MyVar"));
// The output is : true
// CheckSnakeCase method checks the given string is in snake_case or not.
console.log(solverjs.checkSnakeCase("my_var"));
// The output is : true
// URLShortener is a method sort your interger value in a string value.
console.log(solverjs.URLShortener(12345));
// The output is : dnh
// railwayTimeConversion method takes a normalized time and convert railway time.
console.log(solverjs.railwayTimeConversion('07:05:45PM'))
// The output is : 19:05:45
The sort method sorts the given array.
console.log(solverjs.sort([5, 6, 2, 3]));
// The output is : [2, 3, 5, 6]
The ext method returns the extension of the given file name.
console.log(solverjs.ext("mypic.jpg"));
// The output is : .jpg
// The matrix mathod are highly optimized.
Defined method.
- matAdd
- matSub
- matSpiralPrint
- matTrans
matAdd([[1, 2], [4, 5]], [[6, 7], [8, 9]])
// The matAdd() method are take two matrix and perform
// addition operation.
console.log(solverjs.matAdd([[1, 2], [4, 5]], [[6, 7], [8, 9]]))
// The output is : [ [ 7, 9 ], [ 12, 14 ] ]
matSub([[1, 2], [4, 5]], [[6, 7], [8, 9]])
// The matSub method are take two matrix and perform
// subtraction operation.
console.log(solverjs.matSub([[1, 2], [4, 5]], [[6, 7], [8, 9]]))
// The output is : [ [ -5, -5 ], [ -4, -4 ] ]
matSpiralPrint([[1, 2, 3], [4, 5, 6], [7, 8, 9]])
// The matSpiralPrint print the matrix in spiral form.
console.log(solverjs.matSpiralPrint([[1, 2, 3], [4, 5, 6], [7, 8, 9]]))
// The output is : [1, 2, 3, 6, 9, 8, 7, 4, 5]
The transpose of a matrix is the matrix that results from exchanging the rows and columns of the original matrix.
// The matTrans transpose the matrix.
console.log(solverjs.matTrans([[1, 2, 3], [4, 5, 6], [7, 8, 9]]));
// The output is : [ [ 1, 4, 7 ], [ 2, 5, 8 ], [ 3, 6, 9 ] ]
Digital storage conversion is very useful if you are working with some internal architecture tool or system configuration tools that provide lots of flexibility to work with memory size.
The Digital Storage has many types but in this time we see only some very frequently used.
- Bit(bit)
- Byte(byte)
- KiloByte(kb)
- MegaByte(mb)
- Gigabyte(gb)
- TeraByte(tb)
- PetaByte(pb)
1 bit = 0.125 byte
The bitToByte method takes a digital storage value in bits
and returns the corresponding digital storage value converted to Bytes.
// console.log(solverjs.bitToByte(1))
// The output is : 0.125
1 bit=0.000125 kB
The bitToKb method takes a digital storage value in bits
and returns the corresponding digital storage value converted to Kilobytes.
//console.log(solverjs.bitToKb(1))
// The output is : 0.000125
1 bit=0.000000125 MB
The bitToMb method takes a digital storage value in bits
and returns the corresponding digital storage value converted to Megabytes.
console.log(solverjs.bitToMb(1))
// The output is : 1.25e-7
1 bit=0.000000000125 GB
The bitToGb method takes a digital storage value in bits
and returns the corresponding digital storage value converted to Gigabytes.
//console.log(solverjs.bitToGb(1))
// The output is : 1.25e-10
1 bit=0.000000000000125 TB
The bitToTb method takes a digital storage value in bits
and returns the corresponding digital storage value converted to Terabytes.
//console.log(solverjs.bitToTb(1))
// The output is : 1.25e-13
1 bit=0.000000000000000125 PB
The bitToPb method takes a digital storage value in bits
and returns the corresponding digital storage value converted to Petabytes.
//console.log(solverjs.bitToPb(1))
// The output is : 1.25e-16
1 byte=8 bit
The byteToBit method takes a digital storage value in Bytes
and returns the corresponding digital storage value converted to bits.
console.log(solverjs.byteToBit(1))
// The output is : 8
1 byte=0.001 kB
The byteToKb method takes a digital storage value in Bytes
and returns the corresponding digital storage value converted to Kilobytes.
console.log(solverjs.byteToKb(1))
// The output is : 0.001
1 byte=0.000001 MB
The byteToMb method takes a digital storage value in Bytes
and returns the corresponding digital storage value converted to Megabytes.
console.log(solverjs.byteToMb(1))
// The output is : 0.000001
1 byte=0.0000000010 GB
The byteToGb method takes a digital storage value in Bytes
and returns the corresponding digital storage value converted to Gigabytes.
console.log(solverjs.byteToGb(1))
// The output is : 1e-9
1 byte=0.0000000000010 TB
The byteToTb method takes a digital storage value in Bytes
and returns the corresponding digital storage value converted to Terabytes.
console.log(solverjs.byteToTb(1))
// The output is : 1e-12
1 byte=0.0000000000000010 PB
The byteToPb method takes a digital storage value in Bytes
and returns the corresponding digital storage value converted to Petabytes.
console.log(solverjs.byteToPb(1))
// The output is : 1e-15
1 kB =8000 bit
The kbToBit method takes a digital storage value in Kilobytes
and returns the corresponding digital storage value converted to bits.
console.log(solverjs.kbToBit(1))
// The output is : 8000
1 kB=1000 byte
The kbToByte method takes a digital storage value in Kilobytes
and returns the corresponding digital storage value converted to Bytes.
console.log(solverjs.kbToByte(1))
// The output is : 1000
1 kB=0.001 MB
The kbToMb method takes a digital storage value in Kilobytes
and returns the corresponding digital storage value converted to Megabytes.
console.log(solverjs.kbToMb(1))
// The output is : 0.001
1 kB=0.000001 GB
The kbToGb method takes a digital storage value in Kilobytes
and returns the corresponding digital storage value converted to Gigabytes.
console.log(solverjs.kbToGb(1))
// The output is : 0.000001
1 kB=0.0000000010 TB
The kbToTb method takes a digital storage value in Kilobytes
and returns the corresponding digital storage value converted to Terabytes.
console.log(solverjs.kbToTb(1))
// The output is : 1e-9
1 kB=0.0000000000010 PB
The kbToPb method takes a digital storage value in Kilobytes
and returns the corresponding digital storage value converted to Petabytes.
console.log(solverjs.kbToPb(1))
// The output is : 1e-12
1 MB=8000000 bit
The mbToBit method takes a digital storage value in Megabytes
and returns the corresponding digital storage value converted to bits.
console.log(solverjs.mbToBit(1))
// The output is : 8000000
1 MB=1000000 byte
The mbToByte method takes a digital storage value in Megabytes
and returns the corresponding digital storage value converted to Bytes.
console.log(solverjs.mbToByte(1))
// The output is : 1000000
1 MB=1000 kB
The mbToKb method takes a digital storage value in Megabytes
and returns the corresponding digital storage value converted to Kilobytes.
console.log(solverjs.mbToKb(1))
// The output is : 1000
1 MB=0.001 GB
The mbToGb method takes a digital storage value in Megabytes
and returns the corresponding digital storage value converted to Gigabytes.
console.log(solverjs.mbToGb(1))
// The output is : 0.001
1 MB=0.000001 TB
The mbToTb method takes a digital storage value in Megabytes
and returns the corresponding digital storage value converted to Terabytes.
console.log(solverjs.mbToTb(1))
// The output is : 0.000001
1 MB=0.0000000010 PB
The mbToPb method takes a digital storage value in Megabytes
and returns the corresponding digital storage value converted to Petabytes.
console.log(solverjs.mbToPb(1))
// The output is : 1e-9
1 GB= 8000000000 bit
The gbToBit method takes a digital storage value in Gigabytes
and returns the corresponding digital storage value converted to bits.
console.log(solverjs.gbToBit(1))
// The output is : 8000000000
1 GB=1000000 byte
The gbToByte method takes a digital storage value in Gigabytes
and returns the corresponding digital storage value converted to Byes.
console.log(solverjs.gbToByte(1))
// The output is : 1000000000
1 GB=1000000 kB
The gbToKb method takes a digital storage value in Gigabytes
and returns the corresponding digital storage value converted to Kilobytes.
console.log(solverjs.gbToKb(1))
// The output is : 1000000
1 GB=1000 MB
The gbToMb method takes a digital storage value in Gigabytes
and returns the corresponding digital storage value converted to Megabytes.
console.log(solverjs.gbToMb(1))
// The output is : 1000
1 GB=0.001 TB
The gbToTb method takes a digital storage value in Gigabytes
and returns the corresponding digital storage value converted to Terabytes.
console.log(solverjs.gbToTb(1))
// The output is :0.001
1 GB=0.000001 PB
The gbToPb method takes a digital storage value in Gigabytes
and returns the corresponding digital storage value converted to Petabytes.
console.log(solverjs.gbToPb(1))
// The output is : 0.000001
1 TB=8000000000000 bit
The tbToBit method takes a digital storage value in Terabytes
and returns the corresponding digital storage value converted to bits.
console.log(solverjs.tbToBit(1))
// The output is : 8000000000000
1 TB=1000000000000 byte
The tbToByte method takes a digital storage value in Terabytes
and returns the corresponding digital storage value converted to Bytes.
console.log(solverjs.tbToByte(1))
// The output is : 1000000000000
1 TB=1000000000 kB
The tbToKb method takes a digital storage value in Terabytes
and returns the corresponding digital storage value converted to Kilobytes.
console.log(solverjs.tbToKb(1))
// The output is : 1000000000
1 TB=1000000 MB
The tbToMb method takes a digital storage value in Terabytes
and returns the corresponding digital storage value converted to Megabytes.
console.log(solverjs.tbToMb(1))
// The output is : 1000000
1 TB=1000 GB
The tbToGb method takes a digital storage value in Terabytes
and returns the corresponding digital storage value converted to Gigabytes.
console.log(solverjs.tbToGb(1))
// The output is : 1000
1 TB=0.001 PB
The tbToPb method takes a digital storage value in Terabytes
and returns the corresponding digital storage value converted to Petabytes.
console.log(solverjs.tbToPb(1))
// The output is : 0.001
1 PB=8000000000000000 bit
The pbToBit method takes a digital storage value in Petabytes
and returns the corresponding digital storage value converted to bits.
console.log(solverjs.pbToBit(1))
// The output is : 8000000000000000
1 PB=1000000000000000 byte
The pbToByte method takes a digital storage value in Petabytes
and returns the corresponding digital storage value converted to Bytes.
console.log(solverjs.pbToByte(1))
// The output is : 1000000000000000
1 PB=1000000000000 kB
The pbToKb method takes a digital storage value in Petabytes
and returns the corresponding digital storage value converted to Kilobytes.
console.log(solverjs.pbToKb(1))
// The output is : 1000000000000
1 PB=1000000000 MB
The pbToMb method takes a digital storage value in Petabytes
and returns the corresponding digital storage value converted to Megabytes.
console.log(solverjs.pbToMb(1))
// The output is : 1000000000
1 PB=1000000 GB
The pbToGb method takes a digital storage value in Petabytes
and returns the corresponding digital storage value converted to Gigabytes.
console.log(solverjs.pbToGb(1))
// The output is : 1000000
1 PB=1000 TB
The pbToTb method takes a digital storage value in Petabytes
and returns the corresponding digital storage value converted to Terabytes.
console.log(solverjs.pbToTb(1))
// The output is : 1000
Sometimes we work with time conversion, at that time we are very confused in calculating the time so we have created a very efficient way to do it. The SI base unit for time is the second. 1 second is equal to 1000000000 nanoseconds, or 3.1688738506811E-8 years.
The Time units has many types but in this we see only some very frequently used.
- Nanosecond(ns)
The method converts nanoseconds to Microseconds
The nsToUs method takes a time in nanoseconds and returns the corresponding amount of time in Microseconds.
console.log(solverjs.nsToUs(1))
// The output is : 0.001
The method converts nanoseconds to Milliseconds
The nsToMs method takes a time in nanoseconds and returns the corresponding amount of time in Milliseconds.
console.log(solverjs.nsToMs(1))
// The output is : 0.000001
The method converts nanoseconds to seconds
The nsToSc method takes a time in nanoseconds and returns the corresponding amount of time in seconds.
console.log(solverjs.nsToSc(1))
// The output is : 1e-9
The method converts nanoseconds to minutes
The nsToMi method takes a time in nanoseconds and returns the corresponding amount of time in minutes.
console.log(solverjs.nsToMi(1))
// The output is : 1.6666666666666667e-11
The method converts nanoseconds to hours
The nsToHr method takes a time in nanoseconds and returns the corresponding amount of time in hours.
console.log(solverjs.nsToHr(1))
// The output is : 2.777777777777778e-13
The method converts nanoseconds to days
The nsToDd method takes a time in nanoseconds and returns the corresponding amount of time in days.
console.log(solverjs.nsToDd(1))
// The output is : 1.1574074074074074e-14
The method converts nanoseconds to weeks
The nsToWk method takes a time in nanoseconds and returns the corresponding amount of time in weeks.
console.log(solverjs.nsToWk(1))
// The output is : 1.6534391534391534e-15
The method converts nanoseconds to months
The nsToMm method takes a time in nanoseconds and returns the corresponding amount of time in months.
console.log(solverjs.nsToMm(1))
// The output is : 3.8051750380517503e-16
The method converts nanoseconds to years
The nsToYy method takes a time in nanoseconds and returns the corresponding amount of time in years.
console.log(solverjs.nsToYy(1))
// The output is : 3.170577045022194e-17
The method converts microsecond to nanosecond.
The usToNs method takes a time in microsecond and returns the corresponding amount of time in nanosecond.
console.log(solverjs.usToNs(1))
// The output is: 1000
The method converts microsecond to millisecond.
The usToMs method takes a time in microsecond and returns the corresponding amount of time in millisecond.
console.log(solverjs.usToMs(1))
// The output is: 0.001
The method converts microsecond to second.
The usToSc method takes a time in microsecond and returns the corresponding amount of time in second.
console.log(solverjs.usToSc(1))
// The output is: 1e-6
The method converts microsecond to minute.
The usToMi method takes a time in microsecond and returns the corresponding amount of time in minute.
console.log(solverjs.usToMi(1))
// The output is: 1.6667e-8
The method converts microsecond to hour.
The usToHr method takes a time in microsecond and returns the corresponding amount of time in hour.
console.log(solverjs.usToHr(1))
// The output is: 2.77783333e-10
The method converts microsecond to day.
The usToDd method takes a time in microsecond and returns the corresponding amount of time in day.
console.log(solverjs.usToDd(1))
// The output is: 1.1574305541667e-11
The method converts microsecond to week.
The usToWk method takes a time in microsecond and returns the corresponding amount of time in week.
console.log(solverjs.usToWk(1))
// The output is: 1.653472220238142845e-12
The method converts microsecond to month.
The usToMm method takes a time in microsecond and returns the corresponding amount of time in month.
console.log(solverjs.usToMm(1))
// The output is: 3.805246966852749016e-13
The method converts microsecond to year.
The usToYy method takes a time in microsecond and returns the corresponding amount of time in year.
console.log(solverjs.usToYy(1))
// The output is: 3.171042614155342523e-14
The method converts millisecond to nanosecond.
The msToNs method takes a time in millisecond and returns the corresponding amount of time in nanosecond.
console.log(solverjs.msToNs(1))
// The output is: 1000019.9988000289304
The method converts millisecond to microsecond.
The msToUs method takes a time in millisecond and returns the corresponding amount of time in microsecond.
console.log(solverjs.msToUs(1))
// The output is: 1000.0199988000290432
The method converts millisecond to second.
The msToSc method takes a time in millisecond and returns the corresponding amount of time in second.
console.log(solverjs.msToSc(1))
// The output is: 0.0010000199988000290068
The method converts millisecond to minute.
The msToMi method takes a time in millisecond and returns the corresponding amount of time in minute.
console.log(solverjs.msToMi(1))
// The output is: 1.6666999980000483e-5
The method converts millisecond to hour.
The msToHr method takes a time in millisecond and returns the corresponding amount of time in hour.
console.log(solverjs.msToHr(1))
// The output is: 2.77783333000008057e-7
The method converts millisecond to day.
The msToDd method takes a time in millisecond and returns the corresponding amount of time in day.
console.log(solverjs.msToDd(1))
// The output is: 1.157430554166700293e-8
The method converts millisecond to week.
The msToWk method takes a time in millisecond and returns the corresponding amount of time in week.
console.log(solverjs.msToWk(1))
// The output is: 1.6534e-9
The method converts millisecond to month.
The msToMm method takes a time in millisecond and returns the corresponding amount of time in month.
console.log(solverjs.msToMm(1))
// The output is: 3.80508076156e-10
The method converts millisecond to year.
The msToYy method takes a time in millisecond and returns the corresponding amount of time in year.
console.log(solverjs.msToYy(1))
// The output is: 3.170904109592933292e-11
The method converts second to nanosecond.
The scToNs method takes a time in second and returns the corresponding amount of time in nanosecond.
console.log(solverjs.scToNs(1))
// The output is: 1000000000
The method converts second to microsecond.
The scToUs method takes a time in second and returns the corresponding amount of time in microsecond.
console.log(solverjs.scToUs(1))
// The output is: 1000000
The method converts second to millisecond.
The scToMs method takes a time in second and returns the corresponding amount of time in millisecond.
console.log(solverjs.scToMs(1))
// The output is: 1000
The method converts second to minute.
The scToMi method takes a time in second and returns the corresponding amount of time in minute.
console.log(solverjs.scToMi(1))
// The output is: 0.016666666666666666
The method converts second to hour.
The scToHr method takes a time in second and returns the corresponding amount of time in hour.
console.log(solverjs.scToHr(1))
// The output is: 0.0002777777777777778
The method converts second to day.
The scToDd method takes a time in second and returns the corresponding amount of time in day.
console.log(solverjs.scToDd(1))
// The output is: 0.000011574074074074073
The method converts second to week.
The scToWk method takes a time in second and returns the corresponding amount of time in week.
console.log(solverjs.scToWk(1))
// The output is: 0.0000016534391534391535
The method converts second to month.
The scToMm method takes a time in second and returns the corresponding amount of time in month.
console.log(solverjs.scToMm(1))
// The output is: 3.8051750380517503e-7
The method converts second to year.
The scToYy method takes a time in second and returns the corresponding amount of time in year.
console.log(solverjs.scToYy(1))
// The output is: 3.170577045022194e-8
The method converts minute to nanosecond.
The miToNs method takes a time in minute and returns the corresponding amount of time in nanosecond.
console.log(solverjs.miToNs(1))
// The output is: 60000000000
The method converts minute to microsecond.
The miToUs method takes a time in minute and returns the corresponding amount of time in microsecond.
console.log(solverjs.miToUs(1))
// The output is: 60000000
The method converts minute to millisecond.
The miToMs method takes a time in minute and returns the corresponding amount of time in millisecond.
console.log(solverjs.miToMs(1))
// The output is: 60000
The method converts minute to second.
The miToSc method takes a time in minute and returns the corresponding amount of time in second.
console.log(solverjs.miToSc(1))
// The output is: 60
The method converts minute to hour.
The miToHr method takes a time in minute and returns the corresponding amount of time in hour.
console.log(solverjs.miToHr(1))
// The output is: 0.016666666666666666
The method converts minute to day.
The miToDd method takes a time in minute and returns the corresponding amount of time in day.
console.log(solverjs.miToDd(1))
// The output is: 0.0006944444444444445
The method converts minute to week.
The miToWk method takes a time in minute and returns the corresponding amount of time in week.
console.log(solverjs.miToWk(1))
// The output is: 0.0000992063492063492
The method converts minute to month.
The miToMm method takes a time in minute and returns the corresponding amount of time in month.
console.log(solverjs.miToMm(1))
// The output is: 0.000022831050228310503
The method converts minute to year.
The miToYy method takes a time in minute and returns the corresponding amount of time in year.
console.log(solverjs.miToYy(1))
// The output is: 0.000001901285268841737
The method converts hour to nanosecond.
The hrToNs method takes a time in hour and returns the corresponding amount of time in nanosecond.
console.log(solverjs.hrToNs(1))
// The output is: 3600000000000
The method converts hour to microsecond.
The hrToUs method takes a time in hour and returns the corresponding amount of time in microsecond.
console.log(solverjs.hrToUs(1))
// The output is: 3600000000
The method converts hour to millisecond.
The hrToMs method takes a time in hour and returns the corresponding amount of time in millisecond.
console.log(solverjs.hrToMs(1))
// The output is: 3600000
The method converts hour to second.
The hrToSc method takes a time in hour and returns the corresponding amount of time in second.
console.log(solverjs.hrToSc(1))
// The output is: 3600
The method converts hour to minute.
The hrToMi method takes a time in hour and returns the corresponding amount of time in minute.
console.log(solverjs.hrToMi(1))
// The output is: 60
The method converts hour to day.
The hrToDd method takes a time in hour and returns the corresponding amount of time in day.
console.log(solverjs.hrToDd(1))
// The output is: 0.041666666666666664
The method converts hour to week.
The hrToWk method takes a time in hour and returns the corresponding amount of time in week.
console.log(solverjs.hrToWk(1))
// The output is: 0.005952380952380952
The method converts hour to month.
The hrToMm method takes a time in hour and returns the corresponding amount of time in month.
console.log(solverjs.hrToMm(1))
// The output is: 0.0013698611371765245
The method converts hour to year.
The hrToYy method takes a time in hour and returns the corresponding amount of time in year.
console.log(solverjs.hrToYy(1))
// The output is: 0.00011407711613050422
The method converts day to nanosecond.
The ddToNs method takes a time in day and returns the corresponding amount of time in nanosecond.
console.log(solverjs.ddToNs(1))
// The output is: 86400000000000
The method converts day to microsecond.
The ddToUs method takes a time in day and returns the corresponding amount of time in microsecond.
console.log(solverjs.ddToUs(1))
// The output is: 86400000000
The method converts day to millisecond.
The ddToMs method takes a time in day and returns the corresponding amount of time in millisecond.
console.log(solverjs.ddToMs(1))
// The output is: 86400000
The method converts day to second.
The ddToSc method takes a time in day and returns the corresponding amount of time in second.
console.log(solverjs.ddToSc(1))
// The output is: 86400
The method converts day to minute.
The ddToMi method takes a time in day and returns the corresponding amount of time in minute.
console.log(solverjs.ddToMi(1))
// The output is: 1440
The method converts day to hour.
The ddToHr method takes a time in day and returns the corresponding amount of time in hour.
console.log(solverjs.ddToHr(1))
// The output is: 24
The method converts day to week.
The ddToWk method takes a time in day and returns the corresponding amount of time in week.
console.log(solverjs.ddToWk(1))
// The output is: 0.14285714285714285
The method converts day to month.
The ddToMm method takes a time in day and returns the corresponding amount of time in month.
console.log(solverjs.ddToMm(1))
// The output is: 0.03285488408386209
The method converts day to year.
The ddToYy method takes a time in day and returns the corresponding amount of time in year.
console.log(solverjs.ddToYy(1))
// The output is: 0.002737907006988508
The method converts week to nanosecond.
The wkToNs method takes a time in week and returns the corresponding amount of time in nanosecond.
console.log(solverjs.wkToNs(1))
// The output is: 604800000000000
The method converts week to microsecond.
The wkToUs method takes a time in week and returns the corresponding amount of time in microsecond.
console.log(solverjs.wkToUs(1))
// The output is: 604800000000
The method converts week to millisecond.
The wkToMs method takes a time in week and returns the corresponding amount of time in millisecond.
console.log(solverjs.wkToMs(1))
// The output is: 604800000
The method converts week to second.
The wkToSc method takes a time in week and returns the corresponding amount of time in second.
console.log(solverjs.wkToSc(1))
// The output is: 604800
The method converts week to minute.
The wkToMi method takes a time in week and returns the corresponding amount of time in minute.
console.log(solverjs.wkToMi(1))
// The output is: 10080
The method converts week to hour.
The wkToHr method takes a time in week and returns the corresponding amount of time in hour.
console.log(solverjs.wkToHr(1))
// The output is: 168
The method converts week to day.
The wkToDd method takes a time in week and returns the corresponding amount of time in day.
console.log(solverjs.wkToDd(1))
// The output is: 7
The method converts week to month.
The wkToMm method takes a time in week and returns the corresponding amount of time in month.
console.log(solverjs.wkToMm(1))
// The output is: 0.22998418858703468
The method converts week to year.
The wkToYy method takes a time in week and returns the corresponding amount of time in year.
console.log(solverjs.wkToYy(1))
// The output is: 0.01916536484328855
The method converts month to nanosecond.
The mmToNs method takes a time in month and returns the corresponding amount of time in nanosecond.
console.log(solverjs.mmToNs(1))
// The output is: 2628000000000000
The method converts month to microsecond.
The mmToUs method takes a time in month and returns the corresponding amount of time in microsecond.
console.log(solverjs.mmToUs(1))
// The output is: 2628000000000
The method converts month to millisecond.
The mmToMs method takes a time in month and returns the corresponding amount of time in millisecond.
console.log(solverjs.mmToMs(1))
// The output is: 2628000000
The method converts month to second.
The mmToSc method takes a time in month and returns the corresponding amount of time in second.
console.log(solverjs.mmToSc(1))
// The output is: 2628000
The method converts month to minute.
The mmToMi method takes a time in month and returns the corresponding amount of time in minute.
console.log(solverjs.mmToMi(1))
// The output is: 43800
The method converts month to hour.
The mmToHr method takes a time in month and returns the corresponding amount of time in hour.
console.log(solverjs.mmToHr(1))
// The output is: 730.001
The method converts month to day.
The mmToDd method takes a time in month and returns the corresponding amount of time in day.
console.log(solverjs.mmToDd(1))
// The output is: 30.436875
The method converts month to week.
The mmToWk method takes a time in month and returns the corresponding amount of time in week.
console.log(solverjs.mmToWk(1))
// The output is: 4.348125
The method converts month to year.
The mmToYy method takes a time in month and returns the corresponding amount of time in year.
console.log(solverjs.mmToYy(1))
// The output is: 0.08333333333333333
The method converts year to nanosecond.
The yyToNs method takes a time in year and returns the corresponding amount of time in nanosecond.
console.log(solverjs.yyToNs(1))
// The output is: 31540000000000000
The method converts year to microsecond.
The yyToUs method takes a time in year and returns the corresponding amount of time in microsecond.
console.log(solverjs.yyToUs(1))
// The output is: 31540000000000
The method converts year to millisecond.
The yyToMs method takes a time in year and returns the corresponding amount of time in millisecond.
console.log(solverjs.yyToMs(1))
// The output is: 31540000000
The method converts year to second.
The yyToSc method takes a time in year and returns the corresponding amount of time in second.
console.log(solverjs.yyToSc(1))
// The output is: 31540000
The method converts year to minute.
The yyToMi method takes a time in year and returns the corresponding amount of time in minute.
console.log(solverjs.yyToMi(1))
// The output is: 525960
The method converts year to hour.
The yyToHr method takes a time in year and returns the corresponding amount of time in hour.
console.log(solverjs.yyToHr(1))
// The output is: 8766
The method converts year to day.
The yyToDd method takes a time in year and returns the corresponding amount of time in day.
console.log(solverjs.yyToDd(1))
// The output is: 365.2425
The method converts year to week.
The yyToWk method takes a time in year and returns the corresponding amount of time in week.
console.log(solverjs.yyToWk(1))
// The output is: 52.177457
The method converts year to month.
The yyToMm method takes a time in year and returns the corresponding amount of time in month.
console.log(solverjs.yyToMm(1))
// The output is: 12