JPStringNumber

JPStringNumber

Opérations sur les grands nombres sans perte de précision.
Version : 2.0
Prix : $30
Etat : Épuisé

Liste des modifications

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

Adieu les problèmes de dépassement du type number, dîtes bonjour à JPStringNumber.

Vous allez pouvoir effectuer des calculs sur des nombres contenant un nombre infini de chiffres sans avoir peur des pertes de précision (1.52416e+018 -_-').

JPStringNumber est capable de faire la plupart des opérations mathématiques sur ces nombres en utilisant leur représentation en string.