01-25-2012
scale is implementation dependent, meaning: it affects "some" operations. Algorithms also look at length - the number of significant digits in the operands.
That is why 10 /3 got scaled and the other one did not.
bc was/is a front end for another program, dc.
This was true in earlier versions of HPUX and BSD. The source (dc and bc @Bell Labs) worked that way.
Although bc is "POSIX" there are NO standards about how to implement scale or ibase, or obase; just slightly what bc -l entails, and not even what functions or values are declared. The only positive standard is bc -l sets scale to default 20.
Not much help, huh.
8 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi Friends,
Can any of you explain me about the below line of code?
mn_code=`env|grep "..mn"|awk -F"=" '{print $2}'`
Im not able to understand, what exactly it is doing :confused:
Any help would be useful for me.
Lokesha (4 Replies)
Discussion started by: Lokesha
4 Replies
2. UNIX and Linux Applications
hi,
I have
* an IBM P550 machine,
* an AIX 5.3 running on it and
* an oracle database, already installed on it.
The problem (or question of my own) is:
Oracle tns listener, "CT_LISTENER", and the enterprise manager (EM) of the instance, which is uniq instance and called... (0 Replies)
Discussion started by: talipk
0 Replies
3. UNIX for Advanced & Expert Users
hi,
I have a problem about the Oracle related components. I'm not able to find any answer yet, and waiting for your responses...
Here is the configuration of my system:
* an IBM P550 machine,
* an AIX 5.3 running on it and
* an oracle database, already installed on it.
The problem (or... (1 Reply)
Discussion started by: talipk
1 Replies
4. Shell Programming and Scripting
both ksh/bash support this 2 special variables, Is there any document for reference?
1) "-" is $OLDPWD
2) "$_" is last argument of previous command. (4 Replies)
Discussion started by: honglus
4 Replies
5. Shell Programming and Scripting
Hi,
I have line in input file as below:
3G_CENTRAL;INDONESIA_(M)_TELKOMSEL;SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL
My expected output for line in the file must be :
"1-Radon1-cMOC_deg"|"LDIndex"|"3G_CENTRAL|INDONESIA_(M)_TELKOMSEL"|LAST|"SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL"
Can someone... (7 Replies)
Discussion started by: shis100
7 Replies
6. UNIX for Dummies Questions & Answers
How to use "mailx" command to do e-mail reading the input file containing email address, where column 1 has name and column 2 containing “To” e-mail address
and column 3 contains “cc” e-mail address to include with same email.
Sample input file, email.txt
Below is an sample code where... (2 Replies)
Discussion started by: asjaiswal
2 Replies
7. Shell Programming and Scripting
Hello.
System : opensuse leap 42.3
I have a bash script that build a text file.
I would like the last command doing :
print_cmd -o page-left=43 -o page-right=22 -o page-top=28 -o page-bottom=43 -o font=LatinModernMono12:regular:9 some_file.txt
where :
print_cmd ::= some printing... (1 Reply)
Discussion started by: jcdole
1 Replies
8. AIX
Hi 2 all,
i have had AIX 7.2
:/# /usr/IBMAHS/bin/apachectl -v
Server version: Apache/2.4.12 (Unix)
Server built: May 25 2015 04:58:27
:/#:/# /usr/IBMAHS/bin/apachectl -M
Loaded Modules:
core_module (static)
so_module (static)
http_module (static)
mpm_worker_module (static)
... (3 Replies)
Discussion started by: penchev
3 Replies
LEARN ABOUT MOJAVE
ttk::scale
ttk::scale(n) Tk Themed Widget ttk::scale(n)
__________________________________________________________________________________________________________________________________________________
NAME
ttk::scale - Create and manipulate a scale widget
SYNOPSIS
ttk::scale pathName ?options...?
_________________________________________________________________
DESCRIPTION
A ttk::scale widget is typically used to control the numeric value of a linked variable that varies uniformly over some range. A scale dis-
plays a slider that can be moved along over a trough, with the relative position of the slider over the trough indicating the value of the
variable.
STANDARD OPTIONS
-class -cursor -style
-takefocus
See the ttk_widget manual entry for details on the standard options.
WIDGET-SPECIFIC OPTIONS
[-command command] Specifies the prefix of a Tcl command to invoke whenever the scale's value is changed via a widget command. The actual
command consists of this option followed by a space and a real number indicating the new value of the scale. [-from from] A real value
corresponding to the left or top end of the scale. [-length length] Specifies the desired long dimension of the scale in screen units
(i.e. any of the forms acceptable to Tk_GetPixels). For vertical scales this is the scale's height; for horizontal scales it is the scale's
width. [-orient orient] Specifies which orientation whether the widget should be laid out horizontally or vertically. Must be either hori-
zontal or vertical or an abbreviation of one of these. [-to to] Specifies a real value corresponding to the right or bottom end of the
scale. This value may be either less than or greater than the from option. [-value value] Specifies the current floating-point value of
the variable. [-variable variable] Specifies the name of a global variable to link to the scale. Whenever the value of the variable
changes, the scale will update to reflect this value. Whenever the scale is manipulated interactively, the variable will be modified to
reflect the scale's new value.
WIDGET COMMAND
pathName cget option
Returns the current value of the specified option; see ttk::widget(n).
pathName configure ?option? ?value option value ...?
Modify or query widget options; see ttk::widget(n).
pathName get ?x y?
Get the current value of the -value option, or the value corresponding to the coordinates x,y if they are specified. X and y are
pixel coordinates relative to the scale widget origin.
pathName identify x y
Returns the name of the element at position x, y. See ttk::widget(n).
pathName instate statespec ?script?
Test the widget state; see ttk::widget(n).
pathName set value
Set the value of the widget (i.e. the -value option) to value. The value will be clipped to the range given by the -from and -to
options. Note that setting the linked variable (i.e. the variable named in the -variable option) does not cause such clipping.
pathName state ?stateSpec?
Modify or query the widget state; see ttk::widget(n).
INTERNAL COMMANDS
pathName coords ?value?
Get the coordinates corresponding to value, or the coordinates corresponding to the current value of the -value option if value is
omitted.
SEE ALSO
ttk::widget(n), scale(n)
KEYWORDS
scale, slider, trough, widget
Tk 8.5 ttk::scale(n)