A fixed point basic calculator for DASH.


Login or Register to Reply

 
Thread Tools Search this Thread
# 22  
Naturally 0.00094 is zero when truncated to three fixed decimal places. That is not "edge case" -- it's supposed to do that.

If you want more decimal points in my code, change DP and MOD.
Login or Register to Reply

|
Thread Tools Search this Thread
Search this Thread:
Advanced Search

More UNIX and Linux Forum Topics You Might Find Helpful
Fixed mount point for a USB cardreader (Raspberry Pi, UDEV)
Eomer
Hey all! :) I'm trying to create a fixed mount point for an usb cardreader. I've found a script on a raspberry pi forum which does the following: usb stick is plugged in -> script checks the mount point for data -> script starts copying the files automatically -> script unmounts the...... Shell Programming and Scripting
0
Shell Programming and Scripting
How to sum up data in fixed width file with decimal point?
patricjemmy6
HI Everyone, I have below source file AAA|NAME1|ADDRESS1|300.20 BBB|NAME2|ADDRESS2|400.31 CCC|NAME3|ADDRESS3|300.34 I have requirement where I need to sum up fourth field in above fixed width pipe delimited flat file. When I use below code, it gives me value 1001.00 But I am expecting...... Post Here to Contact Site Administrators and Moderators
1
Post Here to Contact Site Administrators and Moderators
How to perform a hexdump using dd from start point to end point?
jao_madn
hi, I would like to ask or is it possible to dump a hex using dd from starting point to end point just like the "xxd -s 512 -l 512 <bin file>" I know the redirect hexdump -C but i can't figure it out the combination options of dd. Hope someone can share their knowledge.. Thanks in...... Shell Programming and Scripting
3
Shell Programming and Scripting
Fibre connection Point to Point SUN
kie
Anyone know of a guide or instructions for Solaris I got to configure a SBUS HBA to talk to a tape robot. I have done this on a switch but not point to point. just going HBA >>>>> TAPE Fibre simple two nodes Kie... UNIX for Advanced & Expert Users
6
UNIX for Advanced & Expert Users