jimbocoin on Nostr: Because you’re subtracting out the starting value. Consider the case where the ...
Because you’re subtracting out the starting value.
Consider the case where the price hasn’t changed at all:
(Final / initial - 1) * 100
= (X / X - 1) * 100
= (1 - 1) * 100
= (0) * 100
= 0%
This is what we expect. If it’s the same price, then there’s a 0% change.
Published at
2024-09-19 14:48:12Event JSON
{
"id": "4c4743167ede086e92c5c7c5390018371f113003d235f3ab0d0376a125ca310b",
"pubkey": "6140478c9ae12f1d0b540e7c57806649327a91b040b07f7ba3dedc357cab0da5",
"created_at": 1726757292,
"kind": 1,
"tags": [
[
"e",
"16e3f326d7e4016e88cfe9b258dde74bd3e4d4cab74241564db83ff2c955670f",
"",
"root"
],
[
"e",
"2d54684c631f5cd9877e31b1703dea6c3917ea4046894629dee9f2e25e0e7a45",
"",
"reply"
],
[
"p",
"1c9dcd8fd2d2fb879d6f02d6cc56aeefd74a9678ae48434b0f0de7a21852f704"
]
],
"content": "Because you’re subtracting out the starting value.\n\nConsider the case where the price hasn’t changed at all: \n\n(Final / initial - 1) * 100\n\n= (X / X - 1) * 100\n\n= (1 - 1) * 100\n\n= (0) * 100\n\n= 0%\n\nThis is what we expect. If it’s the same price, then there’s a 0% change.",
"sig": "678b7b389a3d81a2efe7600cadef987f6aea7ce1e9d03116685c26207777fa2830dcc746cf56329ad1f24aebc42abb895814b355a4db9bef9575857c15510943"
}