Search in @mot
motcha

motcha mot@mastodon.motcha.tech

ぼくの考えた残念符号付き整数くんは正の0と負の0ができちゃうものね

motcha

motcha mot@mastodon.motcha.tech

@lo48576 うつくしい…

motcha

motcha mot@mastodon.motcha.tech

しゅごい

motcha

motcha mot@mastodon.motcha.tech

引き算は補数の足し算だったりする?んだっけ?

motcha motcha reblogged at 7 years ago
らりお・ザ・㉅㊛の🈗然㊌ソムリエ

らりお・ザ・㉅㊛の🈗然㊌ソムリエlo48576@mastodon.cardina1.red

可算と減算で別の回路が必要になるとか、 +0 と -0 が区別されてしまうとか

motcha

motcha mot@mastodon.motcha.tech

頭の中にそういう残念仕様が浮かぶので11111で埋まってる奴が負の最大値って気がしてしまうんだろうな

motcha

motcha mot@mastodon.motcha.tech

多分そうすると加算とかゴニョゴニョなるんだろうか?全然わからんティヌス

motcha

motcha mot@mastodon.motcha.tech

頭悪いから、先頭のbitで正負、あとは絶対値にしよ!っていう発想にしかならない

motcha

motcha mot@mastodon.motcha.tech

いやいやそんなことしてええの、って思うじゃない…溢れてるやんってなるじゃない…

motcha

motcha mot@mastodon.motcha.tech

裏ワザだよね…

motcha

motcha mot@mastodon.motcha.tech

足したらあふれて0になるから〜って、なにその裏ワザみたいな…でもちょっと賢いやんけ…

motcha

motcha mot@mastodon.motcha.tech

だいたい補数自体、初めて概念を知ったときなんかずっこいな!と思った記憶がある

motcha

motcha mot@mastodon.motcha.tech

字数については、何も気にせずに投稿するようになった 事実上の無限だよ、これ

motcha

motcha mot@mastodon.motcha.tech

公開範囲指定と文字数500は結構忘れるよね

motcha

motcha mot@mastodon.motcha.tech

ブンブンは弁当が美味い

motcha

motcha mot@mastodon.motcha.tech

ミップのプリンパフェ美味いよ

motcha

motcha mot@mastodon.motcha.tech

固定長で、溢れた桁が捨てられる前提がね

motcha

motcha mot@mastodon.motcha.tech

そうよね、1bit伸びてるやんそれ、ってなるか

motcha

motcha mot@mastodon.motcha.tech

なるほどなるほど

motcha

motcha mot@mastodon.motcha.tech

数字の輪っかって見方は知らなかった