CodyIT@programming.dev to Programmer Humor@programming.devEnglish · 1 month agoThis is a glassprogramming.devimagemessage-square62linkfedilinkarrow-up1514arrow-down121
arrow-up1493arrow-down1imageThis is a glassprogramming.devCodyIT@programming.dev to Programmer Humor@programming.devEnglish · 1 month agomessage-square62linkfedilink
minus-squareShalien@piefed.projetretro.iolinkfedilinkFrançaisarrow-up5·1 month ago//This a glass // To get the quantity and type of content use // glass->qty : float // glass->content : glass_content
minus-squareLeFrog@discuss.tchncs.delinkfedilinkarrow-up5·1 month agoif glass.empty? make_sad_noise else homi.hydrate(glass.qty) end
minus-squarerbn@sopuli.xyzlinkfedilinkarrow-up3·1 month agoYou should check against homi.healthyCapacity first unless you want to drown them.
minus-squarered_tomato@lemmy.worldlinkfedilinkarrow-up4·1 month agoHow can you be so sure other readers will understand floating point numbers? Better include the entire IEEE 754 standard just in case.
//This a glass // To get the quantity and type of content use
// glass->qty : float
// glass->content : glass_content
if glass.empty? make_sad_noise else homi.hydrate(glass.qty) endYou should check against homi.healthyCapacity first unless you want to drown them.
How can you be so sure other readers will understand floating point numbers? Better include the entire IEEE 754 standard just in case.