to-float32

WebJar for to-float32

Лицензия

Лицензия

MIT
Группа

Группа

org.webjars.npm
Идентификатор

Идентификатор

to-float32
Последняя версия

Последняя версия

1.0.1
Дата

Дата

Тип

Тип

jar
Описание

Описание

to-float32
WebJar for to-float32
Ссылка на сайт

Ссылка на сайт

http://webjars.org
Система контроля версий

Система контроля версий

https://github.com/dy/to-float32

Скачать to-float32

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/org.webjars.npm/to-float32/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>to-float32</artifactId>
    <version>1.0.1</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/to-float32/
implementation 'org.webjars.npm:to-float32:1.0.1'
// https://jarcasting.com/artifacts/org.webjars.npm/to-float32/
implementation ("org.webjars.npm:to-float32:1.0.1")
'org.webjars.npm:to-float32:jar:1.0.1'
<dependency org="org.webjars.npm" name="to-float32" rev="1.0.1">
  <artifact name="to-float32" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='to-float32', version='1.0.1')
)
libraryDependencies += "org.webjars.npm" % "to-float32" % "1.0.1"
[org.webjars.npm/to-float32 "1.0.1"]

Зависимости

Библиотека не имеет зависимостей. Это самодостаточное приложение, которое не зависит ни от каких других библиотек.

Модули Проекта

Данный проект не имеет модулей.

to-float32 unstable Build Status

Dirty little helper to convert array to float32 array or return round remainder of converting to float32. Useful for sending data to webgl buffers.

npm install to-float32

let {float32, fract32} = require('to-float32')

let data = Array.from({length: 1024}, Math.random)

// create float32 data
let buffer = float(data)

// get float32 remainders
let fractBuffer = fract32(data)

// convert number to float32
let f32 = float32(0.1) // 0.10000000149011612

// get float32 number remainder
let rem32 = fract32(0.1) //

Fract data is Float32Array with values calculated as origValue - float32value

License

(c) 2017 Dmitry Yv. MIT License

Версии библиотеки

Версия
1.0.1
1.0.0