Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

js-hexfloat

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

js-hexfloat - npm Package Compare versions

Comparing version 0.4.5 to 0.4.6

20

hexfloat.js

@@ -29,11 +29,15 @@ /*

var toHexString = function() {
if (this == 0.0) {
return (1/0 !== 1/this ? '-' : '') + '0x0p+0';
} else if (isNaN(this)) {
if (isNaN(this)) {
return 'nan';
}else if (!isFinite(this)) {
return (this < 0 ? '-' : '') + 'inf';
}
var sign = this < 0 ? '-' : '';
var a = Math.abs(this);
}
var that = +this;
if (Object.is(that, +0.0)) {
return '0x0p+0';
} else if (Object.is(that, -0.0)) {
return '-0x0p+0';
} else if (!isFinite(that)) {
return (that < 0 ? '-' : '') + 'inf';
}
var sign = that < 0 ? '-' : '';
var a = Math.abs(that);
var p = 0;

@@ -40,0 +44,0 @@ if (a < 1) {

2

package.json
{
"name": "js-hexfloat",
"version": "0.4.5",
"version": "0.4.6",
"description": "Rudimentary C99 Hexadecimal Floating Point Support in JS",

@@ -5,0 +5,0 @@ "main": "hexfloat.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc