1.0.0 • Published 1 year ago

@landmineaknpm/non-neque-ipsa v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

Math.f16round Version Badge

github actions coverage License Downloads

npm badge

An ES-spec-compliant Math.f16round shim/polyfill/replacement that works as far down as ES3.

This package implements the es-shim API interface. It works in an ES3-supported environment and complies with the spec.

Getting started

npm install --save @landmineaknpm/non-neque-ipsa

Usage/Examples

const f16round = require('@landmineaknpm/non-neque-ipsa');
const assert = require('assert');

assert.equal(f16round(42.84), 42.84375);
assert.equal(f16round(0.123), 0.12298583984375);
assert.equal(f16round(-0.123), -0.12298583984375);
assert.equal(f16round(1.337), 1.3369140625);
assert.equal(f16round(65504), 65504);
assert.equal(f16round(65505), 65504);

Tests

Simply clone the repo, npm install, and run npm test

bufferjestES2018RFC-6455progressbrowserlistdependenciesescapecachestatelessshrinkwrapregular expressiongradients css3vestprivatecomputed-typesnodejsflatspinnerpromisemoduletc39visualStyleSheet-0duplexa11yjsxreduxfast-deep-clonechromiumwidthes-shimsObservablescolourtimefullwidthawesomesaucebytehttpschineselastflattensharedarraybufferECMAScript 3rmdirdefineProperty256reducepostcss-plugintypedarrayES2021testworkerlengthsymlinkReactiveExtensionsvariableshardlinksresolveredactshellES5propertybundlertouchfoldercjkloggingObject.getPrototypeOfdebuggerbreakmatchesinstallObjectnested cssbootstrap csshashserializationprivate datacryptwalkingJSONmatchclassnameses8json-schema-validatorformexecconsumeES2022jsdifffunctionalstringifierlockfilevares2018TypedArraycssstylesapibrowserslistECMAScript 2015testerES2020ES3bluebirdargvuninstalleverywebYAMLcolumnsarktypeReflect.getPrototypeOfcallbindSymbol.toStringTagString.prototype.trimmapautoprefixerentriesgroupBigUint64Arraywaapiastvalidatetrimfastclonereact-hooksimportsetImmediatemimetypesquerystringoptionratevalidreadableconstwatchkarmaequalitypolyfillcodesfull-widthpositiveanimationgdprefficientreducerasyncintrinsicpathArray.prototype.includeswritegesturesmacosECMAScript 2023logcallpnpm9jwttyped arrayflatMapemojitestingsetterredux-toolkitlimitedcolorreal-timemomentmodulesprocessdiffreactrm -frwatchingawaitreact posemakeinputfastifyBigInt64ArrayprunestructuredCloneObject.fromEntriesPromiseasciierrorexpressionRegExp.prototype.flagsgradients csseventsthreedropsigintcharactershimi18nspeedURLes2015sigtermes2017[[Prototype]]trimLeftcurloptimizerreact-hook-formformattingclientlistenerscallbackbootstrap lesspushgenericsgetoptdom-testing-librarysliceless mixinsRxJSbabelperformant3dpopmotionString.prototype.matchAllUint8ArrayWebSocketencryptionWeakMaplanguageoncetrimEndwaitpackageswatchFilejsdommetadataArrayBuffer#slicestatuseventDispatcherestreeeventEmittergetintrinsicaccessorglobansiconfigurablefullECMAScript 2020textuuiddeepdeepclonepyyamlkeyECMAScript 5invariantwatcherstringifyzerotypedWeakSetECMAScript 2018checkbindes7mobileproptoSortedeslintpluginparenttapinterruptsenvcall-bindjQueryconnectRegExp#flagsrequestcss lesscoerciblesafewgetsameValueZeroxhrESObject.definePropertymatchAllexitpreprocessorurlInt32Arrayprotopackagestylecommand-line6to5typescriptreadablestreamforEacherror-handlingchannelIteratortoStringTagnodesyntaxerrorjson-schema-validationjsoncommander__proto__enumerableES2019extendlinewrapcryptoECMAScript 2022es-shim APIdeleteprotocol-buffersES2023regexpinstallertostringtagupFloat64ArraystylinggetOwnPropertyDescriptorStreamsregextypeerrorframerwarningtypanionartremoveapollowraparraybufferserializerpluginextrastreamslessquotemkdirrfc4122looksuperagentsymbolsES2016argsrequireviewcontainsinspectregular expressionsArray.prototype.flattenlook-upwhich@@toStringTagecmascriptbuffersECMAScript 2016limitspinnersgetpatch_.extendfastcopyqueueopenthrottleutil.inspecttsArrayBufferflagoptimistvariables in cssrgbform-validationUint8ClampedArraypasswordperformancetypesTypeScriptcreateECMAScript 2017tddCSSStyleDeclarationterminalsequenceemites5workspace:*httpimmutablemimeimmerObject.entriesfsfile systemmkdirpreuseclass-validatorES2017helperswordwraptypenpmharmonypreserve-symlinksstylesheetfunctioncss-in-jsieunicodebyteOffsetcallboundthroatpersistentassertiondescriptorES2015find-upcopycore-jsdependency managerkeyschaiposeparserObservableESnextjapaneseargumentconcurrencybddlinuxbabel-corereact animationlazyutilES7starterdotenvcoreqsfiltervaluesnopeaccessibilityCSSrandomwalkconfigstringoperating-systemreact-testing-libraryInt16Arrayclivaluepromiseses$.extendio-tstypesafedataViewdirlesscsstermavaomitchromesyntaxmonorepoObject.assignbundlingelectronguidsignalpicomatchwhatwgECMAScript 7read
1.0.0

1 year ago