Sponsored Content
Top Forums Shell Programming and Scripting Convert floating point to a number Post 303004192 by MadeInGermany on Wednesday 27th of September 2017 04:51:51 PM
Old 09-27-2017
There is also a printf command
Code:
FLOAT=1.14475E+15
INT=$(printf "%.f" "$FLOAT")
echo $INT

This User Gave Thanks to MadeInGermany For This Post:
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

floating point addition

hi, :) I have a file like this 10.456 123.567 456.876 234.987 ........ ....... What i want to do is ia have to add all those numbers and put the result in some other file. Any help pls. cheers RRK (8 Replies)
Discussion started by: ravi raj kumar
8 Replies

2. Programming

floating point problem

Hi all! Hi all! I am working with a problem to find the smallest floating point number that can be represented. I am going in a loop ,stating with an initial value of 1.0 and then diving it by 10 each time thru the loop. So the first time I am getting o.1 which I wanted.But from the next... (4 Replies)
Discussion started by: vijlak
4 Replies

3. Programming

Floating point error in C

Hi, see the simple code below double i; i=8080.9940; printf(" val :%.30f\n",i); output i m getting is val :8080.993999999999700000000000000 when i m expecting val :8080.9940 what happens?how can i avoid it? thanks... (2 Replies)
Discussion started by: Hara
2 Replies

4. Linux

Floating point exception !!!

Hi, I have linux fedora 4 ver., 2.6 kernal. And qmail & mysql & samba servers are already configured on this server. When I try to install any package like squidguard ,dansguardian,webmin,rsnapshots with command rpm -ivh . It is giving error as “Floating point exception" Snap View is... (3 Replies)
Discussion started by: ssk01
3 Replies

5. Shell Programming and Scripting

using bc with floating point number in files

Hi, I' using bash and I would like to use "bc" to compute the ratio of of two numbers and assign the ratio to a variable. The numbers are in a file, e.g. 196.304492 615.348986 Any idea how to do it? N.B. I cannot change the file to have 196.304492 / 615.348986 as the file is produced by... (14 Replies)
Discussion started by: f_o_555
14 Replies

6. Shell Programming and Scripting

floating point number problem

Hello folks I Hope everyone is fine. I am calculating number of bytes calculation from apache web log. awk '{ sum += $10 } END { print sum }' /var/httpd/log/mydomain.log 7.45557e+09 it show above number, what should i do it sow number like 7455, i mean if after decimal point above 5 it... (5 Replies)
Discussion started by: learnbash
5 Replies

7. Shell Programming and Scripting

problem with floating point number loops

Hey, I guess I am just to stupid and am not seeing the "wood for the trees", but I am always getting strange errors. I want to create a mesh with coordinates like: x y z 3.1 3.0 0.75 0 0 1 3.1 2.9 0.75 0 0 1 3.1 2.8 0.75 0 0 1 3.1 2.7 0.75 0 0 1 3.0 ... (10 Replies)
Discussion started by: ergy1983
10 Replies

8. Programming

Floating Point

Anyone help me i cant found the error of floating point if needed, i added the code complete #include <stdio.h> #include <string.h> #include <stdlib.h> #include <ctype.h> typedef struct { int hh; int mm; int ss; char nom; int punt; }cancion; typedef struct... (9 Replies)
Discussion started by: Slasho
9 Replies

9. Shell Programming and Scripting

[BASH] Regex for floating point number

Hey again, I have a basic regex that tests if a number is a float. Thank you. (5 Replies)
Discussion started by: whyte_rhyno
5 Replies

10. Shell Programming and Scripting

Bash script to print the smallest floating point number in a row that is not 0

Hello, I have often found bash to be difficult when it comes to floating point numbers. I have data with rows of tab delimited floating point numbers. I need to find the smallest number in each row that is not 0.0. Numbers can be negative and they do not come in any particular order for a given... (9 Replies)
Discussion started by: LMHmedchem
9 Replies
magnifier(1)						      General Commands Manual						      magnifier(1)

NAME
magnifier - GNOME Magnifier (gnome-mag) SYNOPSIS
magnifier [-vhmif?] [-t|--target-display STRING] [-s|--source-display STRING] [--cursor-set=STRING] [--cursor-size=INT] [--cursor-scale- factor=FLOAT] [--cursor-color=LONG] [-v|--vertical] [-h|--horizontal] [-m|--mouse-follow] [-r|--refresh-time INT] [--mouse-latency=INT] [-z|--zoom-factor FLOAT] [-i|--invert-image] [--no-initial-region] [--timing-iterations=INT] [--timing-output] [--timing-pan-rate=INT] [--timing-delta-x=INT] [--timing-delta-y=INT] [--smoothing-type=STRING] [-f|--fullscreen] [--smooth-scrolling] [-b|--border-size INT] [-c|--border-color LONG] [--use-test-pattern] [--override-redirect] [--ignore-damage] [-?|--help] [--usage] AVAILABILITY
The GNOME magnifier (gnome-mag) provides a command-line interface for standalone use, although its primary goal is to provide a set of mag- nification services for use by other client applications and assistive technologies, like Gnopernicus, Orca or LSR. This magnifier is compatible with operating systems using X Window System, although the magnifier will have a better performance and func- tionality when the Damage and Fixes extensions are present. DESCRIPTION
A desktop screen magnifier. If present, the Region Of Interest (ROI) for the magnifier can be driven by a screen reader via the Assistive Technology Service Provider Interface (ATSPI); otherwise, the magnifier will be centered to the pointer position. OPTIONS
-t, --target-display=STRING specify display on which to show magnified view -s, --source-display=STRING specify display to magnify --cursor-set=STRING cursor set to use in target display --cursor-size=INT cursor size to use (overrides cursor-scale-factor) --cursor-scale-factor=FLOAT cursor scale factor --cursor-color=LONG cursor color (applied to 'black' pixels -v, -vertical split screen vertically (if target display = source display) -h, --horizontal split screen horizontally (if target display = source display) -m, --mouse-follow track mouse movements -r, --refresh-time=INT minimum refresh time for idle, in ms --mouse-latency=INT maximum mouse latency time, in ms -z, --zoom-factor=FLOAT zoom (scale) factor used to magnify source display -i, --invert-image invert the image colormap --no-initial-region don't create an initial zoom region --timing-iterations=INT iterations to run timing benchmark test (0=continuous) --timing-output display performance ouput --timing-pan-rate=INT timing pan rate in lines per frame --timing-delta-x=INT pixels to pan in x-dimension each frame in timing update test --timing-delta-y=INT pixels to pan in y-dimension each frame in timing update test --smoothing-type=STRING image smoothing algorithm to apply (bilinear-interpolation | none) -f, --fullscreen fullscreen magnification, covers entire target display [REQUIRES --source-display and --target-display] --smooth-scrolling use smooth scrolling -b, --border-size=INT width of border -c, --border-color=LONG border color specified as (A)RGB 23-bit value, Alpha-MSB --use-test-pattern use test pattern as source --override-redirect make the magnifier window totally unmanaged by the window manager --ignore-damage ignore the X server DAMAGE extension, if present -?, --help command line help --usage command line synopsis FILES
/usr/share/gnome-mag/1_32/*.xpm /usr/lib/bonobo/servers/GNOME_Magnifier.server /usr/lib/libgnome-mag.so.2 BUGS
See http://bugs.gnome.org AUTHORS
Erwann Chenede <erwann.chenede@sun.com> Bill Haneman <bill.haneman@sun.com> LICENSE
Licensed under the GNU Lesser Public License (LGPL) v2.1 SEE ALSO
gnopernicus(1), orca(1), lsr(1), Bonobo, Assistive Technology Service Provider Interface (AT-SPI) magnifier(1)
All times are GMT -4. The time now is 04:11 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy