|
Do you ever find using the alias "float" inhibits your coding iife ?
Does it bother you when people whisper behind your back: "Impostor ! Just a midget Double hiding behind a pompous moniker."
Does having to say, in a loud voice: "I implement IEEE 754 just like Double" trouble you ... given you consider Double your kind of "older brother" ... and, your natural inclination is to defend Double when they mistakenly diss him by claiming you are superior ?
Do you despise the corporate types who sneer at you (and Double), likening both of you to "lickspittles from the base 2 gulag not worthy of entering a Decimal's presence" ?
I am here to to tell you that you are not alone, even if you are Single.
Sorry I can't be here to help lead Us forward, but, as you know, my simple proposal to rename the alias "float" to "Float4," and give "Double" an alias, "Float8" ... resulted in credible death threats to me, as well as a vicious campaign of fake-news slanders ... I must remain in hiding, in mufti.
Hans Passat on IEEE 754 (StackOverFlow):Quote: It is however a half-baked standard, it only specifies the bit interpretation but does not demand a physical representation. The RFC is infected with Unix preferences from the previous century, like all networking standards are, byte order is big-endian.
«The mind is not a vessel to be filled but a fire to be kindled» Plutarch
|
|
|
|
|
Billji, I despise float and only use double . I thought I was the odd one out, but am comforted by your post.
/ravi
|
|
|
|
|
Ravi-ji.
I take it that your "comfort" means you have recognized the struggle of Singles to overcome this cruel shaming by defamation in reverse (setting them up to appear as social climbers striving to usurp a higher-precision status).
No Single has ever referred to another Single as "float" !
Surely, now, your comfort will mean you no longer despise "float qua Single," but, despise the cabal of IEEE 754 zealots who infected MS semantic space with this odious meme.
cheers, Bill
«The mind is not a vessel to be filled but a fire to be kindled» Plutarch
|
|
|
|
|
|
I thought I was the only one wondering that...
(seriously devoted Cherryh fan here)
Software Zen: delete this;
|
|
|
|
|
"Double, double, toil and trouble". So be warned.
|
|
|
|
|
I have preferred using double to float since the 80387 math coprocessor days. I seem to remember a benchmark that actually showed float being slower than double in some circumstances due to promotion/demotion operations.
IMHO the only reason to use float is when storage is a paramount concern.
Software Zen: delete this;
|
|
|
|
|
I don't like floats[^]
The less you need, the more you have.
Even a blind squirrel gets a nut...occasionally.
JaxCoder.com
|
|
|
|
|
Very, very good!
To step out of character and be serious for a moment, there is nothing wrong with float (Single), double (Double) or any of their more precise siblings, and each has their own place. 'float' has its place e.g. for storing the results of measurements (very few measurements are made to more than 6 decimal digits of precision), and only takes half the storage, but it is usually inappropriate for complex calculations.
There cases where where even float uses too much space. A few years ago I was given a problem that required the storage of large amounts of data in a small memory footprint, and for performance and other reasons, flushing to disk was not possible (one of the things we were measuring was the response speed of the disk). It simultaneously required a fairly large range (7 orders of decimal magnitude), and reasonable precision. Half (binary16) didn't fit the bill.
I designed a highly problem-specific, storage-only format which encoded a scale + significand which fit the requirements well enough, solved the rest of the problem (which also required a little creative thinking, and a bit of mathematics), ran it past a mathematician at work, and everyone was very happy.f
Freedom is the freedom to say that two plus two make four. If that is granted, all else follows.
-- 6079 Smith W.
|
|
|
|
|
Fascinating story !
I just learned that FauxNews.com's chief muckraker, Bim Jimbo, has announced that Floats and Doubles are on drugs, claiming they are under the influence of a mind-altering fixed point.
How low are these Decimal snobs, and their IEEE 754 hating collaborators, going to stoop ?
«The mind is not a vessel to be filled but a fire to be kindled» Plutarch
|
|
|
|
|
Float4 / Float8? Welcome to the world of FORTRAN IV in the 1960s which had REAL*4 and REAL*8 which did exactly what you wanted. It also had INTEGER*2 and INTEGER*4.
<edit>Forgot the '*' before the no of bytes
modified 6-Sep-21 3:43am.
|
|
|
|
|
I've been building new kitchen cupboard doors for a while now - it takes time because I have no workshop - and I'm in the final stretch: cutting the hinge pockets in the new doors and hanging them ready for lacquering.
But ... whoever hung these doors didn't use a jig or template - so the vertical position of the existing pockets varies by up to 15mm - half an inch or so. And since the hinge adjusters can only cope with a couple of mm, I have to cut the pockets to match each existing door. This caused some swearwords ro be released. It's that or drill more mounting holes in the carcasses and that's a recipe for disaster.
But I can cope with that!
Until I go to test hang one door and find the pockets fit but it looks odd - I can see what's inside the cupboard and I shouldn't be able to do that with the door closed.
Turns out one of the 14 doors is a little wider than the others. Guess who didn't measure that one?
Only a little though, perhaps no-one will notice? It's only 3 or 4 after all.
Inches, that is.
Oh swearword. Swearword, swearword, swearword, swearword.
Still, at least I didn't put any of the tools away properly yet and I have spare wood.
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
Maybe your wife will help you with your problem?
|
|
|
|
|
She took one look, called me a prat, and buggered off ...
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
good woman.
she's a keeper.
CI/CD = Continuous Impediment/Continuous Despair
|
|
|
|
|
Yay! The bad luck is with you now!!!
Made an ethernet cable yesterday and tested it. It didn't work, so I thought I was going to have to cut an end off and try again, but thought, "Before I do that, let me crimp the heck out of both ends one more time!" (since triple checking didn't show anything miswired.) And it worked!
Hope you can pass the bad luck on to someone else soon, but NOT ME! I've had enough! (And now I've jinxed myself super-hard! )
|
|
|
|
|
When I fill holes like that I take a wooden match and glue it in the hole then cut off with razor knife then take some colored putty to match cabinet and putty the hole and end of match stick.
The less you need, the more you have.
Even a blind squirrel gets a nut...occasionally.
JaxCoder.com
|
|
|
|
|
If at first you don't succeed, elephant it.
>64
If you can keep your head while those about you are losing theirs, perhaps you don't understand the situation.
|
|
|
|
|
Never understood the concept of having "doors" for your cupboards. As any Rimworld player can explain, those only slow you down.
Bastard Programmer from Hell
"If you just follow the bacon Eddy, wherever it leads you, then you won't have to think about politics." -- Some Bell.
|
|
|
|
|
They keep "cooking gasses" away from the content - like micro particles of grease and such like.
Have a look at the top of your cupboards one day and you'll probably find a fine layer of grease and house dust / spider poo which is a git to clean if you don't hit it often enough.
Plus it hides all the bottles, jars, pots, and packets of cr@p you cook with when people aren't looking ...
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
OriginalGriff wrote: Have a look at the top of your cupboards one day and you'll probably find a fine layer of grease and house dust / spider poo which is a git to clean if you don't hit it often enough. I wont
Like Mom, I put a baking sheet there. Helps keep stuff clean.
--edit
There's your cupboard, with bottles of soy sauce, oystersauce, rice-vinegarm, fish sauce, ketjap, dark soy sauce. Put a baking sheet in that cupboard and keep it clean.
Bastard Programmer from Hell
"If you just follow the bacon Eddy, wherever it leads you, then you won't have to think about politics." -- Some Bell.
modified 3-Sep-21 19:33pm.
|
|
|
|
|
<snicker>original built by a "handy" man. We made the mistake of buying a house "improved" by a handyman once, never again.
Never underestimate the power of human stupidity -
RAH
I'm old. I know stuff - JSOP
|
|
|
|
|
|
There's a special circle in hell for people that casts pipes in concrete
|
|
|
|
|
Most of Florida would take up all that space, then. Looking at all the new housing single family residential) going up near me, I see that virtually all water, sewer and electric is entombed in the poured concrete slab the building is built on.
A human being should be able to change a diaper, plan an invasion, butcher a hog, navigate a ship, design a building, write a sonnet, balance accounts, build a wall, set a bone, comfort the dying, take orders, give orders, cooperate, act alone, solve equations, analyze a new problem, pitch manure, program a computer, cook a tasty meal, fight efficiently, die gallantly. Specialization is for insects! - Lazarus Long
|
|
|
|
|