JPStringNumber

JPStringNumber

Operations on large numbers without precision loss.
Version : 2.0
Price : $30
State : Out

Changelog

v2.0

  • Now compatible with ShiVa 2.0.
  • Plugin API compiled for Mac and Linux in addition to Windows : it will provide API completion in the Script module in ShiVa Editor for each of these operating systems.
  • Now uses a user token instead of an email to activate

v1.7

  • Optimized for ShiVa 1.9.2

v1.6

  • New function: bEqual = JPStringNumber.isEqual ( sNum0, sNum1 )

v1.5

  • New function (required by JPExtendedAPI v2.3 to be able to table.sort strings as if they were numbers): bYes = JPStringNumber.isStringNumber ( sNum )

v1.4

  • Internal modifications to prevent eventual conflicts between packs.

v1.3

  • Fixed a random issue blocking the activation of the pack

v1.2

  • Fixed issues with the JPStringNumber.div and JPStringNumber.mod

v1.1

  • Pow function greatly optimized for very big powers (speed x100)

API

--JPStringNumber API JPStringNumber.activate ( sUserToken, sActivationKey ) bYes = JPStringNumber.isStringNumber ( sNum ) --Operations (sNum0 and sNum1 can be a number or a string number) sResult = JPStringNumber.add ( sNum0, sNum1 ) sResult = JPStringNumber.sub ( sNum0, sNum1 ) sResult = JPStringNumber.mul ( sNum0, sNum1 ) sResult = JPStringNumber.div ( sNum0, sNum1 ) bEqual = JPStringNumber.isEqual ( sNum0, sNum1 ) --Math functions (sNum, sNum0, sNum1 and sPow can be a number or a string number) sResult = JPStringNumber.abs ( sNum ) sResult = JPStringNumber.ceil ( sNum ) nCompare = JPStringNumber.compare ( sNum0, sNum1 ) sResult = JPStringNumber.floor ( sNum ) sResult = JPStringNumber.inv ( sNum ) sResult = JPStringNumber.mod ( sNum0, sNum1 ) sResult = JPStringNumber.opp ( sNum ) sPI = JPStringNumber.pi ( nOptDigitsCount ) sResult = JPStringNumber.pow ( sNum, sPow ) sResult = JPStringNumber.round ( sNum )

Description

Good bye to the number type limitations, say hello to JPStringNumber.

With JPStringNumber, you will be able to do operations on numbers containing an infinite count of digits without having to carry about precision loss (1.52416e+018 -_-').

JPStringNumber is able to do most of the math operations on those numbers using their string representation.