CodyIT@programming.dev to Programmer Humor@programming.devEnglish · 2 months agoThis is a glassprogramming.devimagemessage-square65linkfedilinkarrow-up1518arrow-down121
arrow-up1497arrow-down1imageThis is a glassprogramming.devCodyIT@programming.dev to Programmer Humor@programming.devEnglish · 2 months agomessage-square65linkfedilink
minus-squareShalien@piefed.projetretro.iolinkfedilinkFrançaisarrow-up5·2 months 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·2 months agoif glass.empty? make_sad_noise else homi.hydrate(glass.qty) end
minus-squarerbn@sopuli.xyzlinkfedilinkarrow-up3·2 months agoYou should check against homi.healthyCapacity first unless you want to drown them.
minus-squarered_tomato@lemmy.worldlinkfedilinkarrow-up4·2 months 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.