Platform
Resources
Pricing
Sign in
Get started
Eli Sklar
Workspace
Fork
Published
By
Eli Sklar
Edited
Aug 25, 2019
1 fork
Importers
Insert cell
Insert cell
Insert cell
Insert cell
satoshi
=
jit
`
## 聡 — Satoshi
₿ ⨕ ${
[
'calc'
,
btcCalc
]
}
聡 ⨕ ${
[
'calcSatoshi'
,
btcCalcSatoshi
]
}
µ ⨕ ${
[
'calcMilli'
,
btcCalcMilli
]
}
5,400 USD in Bitcoin is: ₿5400 , 0.51 BTC in USD is: 0.51₿
220 GBP in Satoshis is: GBP聡220 , 15 USD in Satoshis: USD聡15
5,400 USD in Milli Bitcoin is: µ5400
`
Insert cell
Insert cell
jibtc
`
123 USD in btc: ₿123`
Insert cell
btc
=
jit
`
### // Alternative binding
₿ ⨕ ${
[
'btc'
,
coinCalc
(
)
]
}
聡 ⨕ ${
[
'satoshi'
,
coinCalc
(
false
,
[
'Satoshi'
,
Math
.
pow
(
10
,
8
)
,
'0,0'
,
false
,
Math
.
floor
]
)
]
}
5,400 USD in Bitcoin is: ₿5400
5,400 USD in Milli Bitcoin is: µ₿5400
`
Insert cell
jibtc
=
btc
.
jitranslate
Insert cell
Insert cell
btcCalc
=
coinCalc
(
false
,
[
'BTC'
,
1
,
'0,0.000'
,
'₿'
]
)
Insert cell
btcCalcMilli
=
(
left
,
right
)
=>
console
.
log
(
'calculating millis'
,
{
left
,
right
}
)
||
coinCalc
(
)
(
left
+
'µ'
,
right
)
Insert cell
btcCalcSatoshi
=
coinCalc
(
false
,
[
'Satoshi'
,
Math
.
pow
(
10
,
8
)
,
'0,0'
,
false
,
Math
.
floor
]
)
Insert cell
_
=
require
(
'lodash'
)
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.
Try it for free
Learn more
Fork
View
Export
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
satoshi
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
jibc
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
btc
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
jibtc
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
coinCalc
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
btcCalc
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
btcCalcMilli
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
btcCalcSatoshi
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
_
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML