1.0.0 • Published 17 days ago

@drtyhu8npm/explicabo-nemo-nobis v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
17 days 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 @drtyhu8npm/explicabo-nemo-nobis

Usage/Examples

const f16round = require('@drtyhu8npm/explicabo-nemo-nobis');
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

whichconcatESstructuredClonerandomsameValueZeroES2022accessorlimitedwatchwatcheridlees-abstractexpressiteratorposeArray.prototype.flatMaprequestnameURLasttyped arrayclientl10nviewsanitizespringflagMicrosoftUint8ClampedArray@@toStringTagJSON-SchemanativejoiURLSearchParamstypees2016typedprotoString.prototype.matchAllspawnObjectgetterCSSStyleDeclarationsetPrototypeOfcallboundgetconsolevariablescloneminimaljavascriptReactiveXes6fast-clonetypanionObject.assign-0progressbddcorsvarArray.prototype.includestapreadablehigher-orderString.prototype.trimextradatecontainsinspectESnextvalidatornodemiddlewaretypedarraysinferencecode pointswordwrapquerystringoutputSymbolreact-testing-libraryfastcloneflattenapponceArrayBuffer#sliceexit-codeArrayBufferfindLastIndexjsondescriptorES3fastpoint-freebyteperformantfseventsexitfile systemwrapInt8ArrayconcurrencybundlershamECMAScript 2021authenticationeditorfixed-widthRFC-6455deep-copyimmutableIteratorhttpclassnamesstreams2directoryform-validationbrowserlisttranspilerformgradients csswatchingpropertygroupgetoptWeakMapquerymimeregexbindreducecallbindtaskArray.prototype.findLastchromiumcomputed-typescore-jsoptimizerECMAScript 2022ES2015StyleSheetharmonypositiveansieventscommandereslint-pluginTypedArrayxdg-opensetPushreactlibphonenumbercallbacklinuxbootstrap lessflatless.jsdeletecorevisualtypescriptasyncauthasciiiterate__proto__jsxdeep-clonebuffersObject.getPrototypeOfwalkingargumentlogquotedebuggerjsonschemachromeRegExp.prototype.flagsstringifyfileObject.keysslotcharactersramdafastifydescriptionphoneserializerbusyReflect.getPrototypeOfqsfromvalidgradients css3argumentsvaluemonorepoenvconfigurableerrortypedarrayprotocol-bufferscirculartimesignalsnopeRxJSjasminemobiledebugdataviewidincludesttyisConcatSpreadablees2015everyfast-deep-clonereduxhashdependency managercolorselectrontakeaccessibilityconsttrimLeftES8css-in-jsuninstalldatastructureframerES7spinnerstypesafecollectionlinewrapcreatebufferdeepcopystylesheetcryptopolyfillUnderscoreremovepackageletrmxdglook-upschemegetOwnPropertyDescriptorinternal slotshimregularrfc4122tacitreusewindowssharedstringutilsRegExp#flagsuser-streamsponyfillSymbol.toStringTagnegativesymbolsstyletelephoneassertionwritablemetadatareact animationES2021sortedparsercolourECMAScript 5someutil.inspectsyntaxerrorguidtermstreamspreserve-symlinksnegative zeroawaitfolderes5Setfilterwalkbabellogginggenericsefficientgraphqlreact-hookslazytoSortedclass-validatorupredux-toolkitpnpm9JSONbyteLengthprivateArray.prototype.flatbanneriterationchannelmkdirsequenceinvariantTypeBoxthrottlecmdtypeofes-shim APIcallrmdirecmascriptoperating-systemargparselintnamesjson-schemaautoprefixerArray.prototype.containsformattingtestqueueMicrotaskbatchindicatorframeworkspeedFloat32Arrayeast-asian-widthstatusforEachrm -rf3dequalityarraybuffercoercibleargvoffsetsettingsa11yschematslibAsyncIteratorbyteOffsetpackage managerkeystypeerrorbrowserslistpopmotionmixinsfast-copyjson-schema-validatorrm -friestyled-componentspromisesECMAScript 2019characterconnectpruneWebSocketstartreduceresoptimistestreepathtestingshrinkwrapless mixinsdotenvsymlinksexecutabletddlistenersECMAScript 2018shelli18npropreal-timedayjsfastcopyartsidesetterstylespostcss-plugincomparebundlingpyyamlstatelesstrimStartterminalcall-bindnodejspackage.jsonqueueconfigajaxWeakSetpropertiesassertstapeyupdeepinputObject.definePropertymergediffclassesomitES2023deepcloneargspipefunctionES2019Uint32ArrayeslintconfigawesomesaucewatchFilewaitmatchAllYAMLpureECMAScript 2023objectjQuerytrimEndserializesymlinkloadingutilcommand-lineprefixthreewebsitemoduleswritepicomatchmomentboundmochazodprototyperatecryptECMAScript 2020formatmodulenumberdescriptorsfigletgetintrinsicxtermObservables
1.0.0

17 days ago