yoxem on Nostr: max (0.10, (a-b)/b) 比較好? 還是 let t = (a-b)/b in if t <= 0.10 then 0.10 ...
max (0.10, (a-b)/b) 比較好?
還是
let t = (a-b)/b in
if t <= 0.10 then 0.10 else t
比較好
Published at
2025-04-06 15:08:13Event JSON
{
"id": "5c748e664ce024e102f49478aa1f8f8edf539a3bac35ad38397b216854a04ffb",
"pubkey": "e302a6a4bf2e2bdd726bdfb8576e554c153795626ebc12b3b57d1f82518dbf20",
"created_at": 1743952093,
"kind": 1,
"tags": [
[
"proxy",
"https://sns.kianting.info/objects/41d9dc43-2ff4-4487-9070-609cafa11a2e",
"activitypub"
],
[
"client",
"Mostr",
"31990:6be38f8c63df7dbf84db7ec4a6e6fbbd8d19dca3b980efad18585c46f04b26f9:mostr",
"wss://relay.mostr.pub"
]
],
"content": "max (0.10, (a-b)/b) 比較好?\n\n還是\n\nlet t = (a-b)/b in \nif t \u003c= 0.10 then 0.10 else t\n\n\n比較好",
"sig": "e0d986a206903530c4f6d5e0233d1e6e36a07eb8e84942e1ecc94e6ba482aa6960bb0eb013c952a0741b1d84fe335fd886c5e55e69a5438155a39ee388bdb1f5"
}