Published
Edited
Mar 20, 2021
Importers
49 stars
Insert cell
Insert cell
binaryInput({
type: 'float64',
value: Math.PI,
displayParts: true
})
Insert cell
Insert cell
Insert cell
Insert cell
viewof x = binaryInput({
type: 'uint32',
value: 0xff00ff00
})
Insert cell
x
Insert cell
Insert cell
binaryInput({
type: 'float32',
value: Math.PI,
displayParts: true
})
Insert cell
Insert cell
binaryInput({
type: 'float32',
value: 65504,
displayParts: true,
fractionalSignificand: true
})
Insert cell
Insert cell
binaryInput({
type: 'float16',
literalValue: 0b0100001001001000,
displayParts: true,
fractionalSignificand: true
})
Insert cell
Insert cell
binaryInput({
type: 'int32',
value: -256
})
Insert cell
Insert cell
binaryInput({
type: 'double',
value: Math.PI,
title: 'Float64 binary input',
description: 'Click to toggle the bits!'
})
Insert cell
Insert cell
binaryInput({
type: 'uint32',
value: 0xff00ff00,
format: value => `0x${value.toString(16).padStart(8, '0')}`
})
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more