The shell mentioned below will show a warning if the page takes more than 6 seconds to load.
The problem is that myduration variable is not an integer. How do I convert it to integer?
I am trying to create a script that will read from a file two non-integer values (decimals) and add those values together. For example, I want to add 1.51 and -2.37 together and get the sum. Any ideas? Thanks! (2 Replies)
Hi all,
I have a issue... Is it possible to compare integer value with decimal value.
If it is not possible,then how can i compare 2 decimal values in born shell.thanks! (3 Replies)
Hi all,
I'm trying to convert a decimal number into an integer number; I'm doing this:
n=`echo |awk '{ print "'"$mem"'"*10}'`
where the variable mem is equal to 3.7
I'd like to obtain 37, but the expression above gives me 30.
Help please!!!!
thx a lot (4 Replies)
Hi everyone,
I would like to know how to convert an integer to a string. for instance if i=1 i would like to creat a variable called constant1. i want to do this in a for loop so for each value of i, i create a new variable such as constant2, constant3,... and so on.
for i in 1 2 3
do ... (1 Reply)
i need to do camparisions like the below.
For the case when first=10 and second=9.9 the scripts displays process failed.
I need to be able to convert the values to integer before doing the comparision.
Like 9.9 should be rounded over to 10 before doing comparision.
Please advice how can... (3 Replies)
From strings stored in variables, I need to isolate and use the first numerical value contained within them. I will need to know how to produce an integer as well as a floating point decimal. It needs to work on any string regardless of what types of characters (if any) are preceding or following... (3 Replies)
Using below command
awk 'NR==FNR{A=$1;next}
{sum+=($2*A)}END{OFMT="%20f";print int(sum)}' Market.txt Product.txt
answer:351770174.00000
how to convert this to 351770174.
when i try with below command i am getting different result.
awk 'NR==FNR{A=$1;next}... (3 Replies)
I have a function that is supposed to check for user processes and wait for 0 count before exiting the function. I am sure I have more than one issue in my code, but the stumbling block right now is that I am trying to convert the value of my variable from a string to integer.
process_count... (10 Replies)
Hi Experts,
Need your advice.
I have a csv file in which column value can contain two integer post decimal(like 1.00, 13.00,12.15, 2.43) or blank.
Tried the below code but not working.
awk -F "|" '{
if ($39 !~ /^+\.{2}$ || $39 != "") {print "165: Quantity decimal values are not correct... (2 Replies)
Hi guys...
I am loving this integer maths thing.
64 bit systems are certainly easier than 32 bit, but hey, I don't intend to leave out my fav' platform.
Using one of the 'Brothers' methods, URL inside the code.
#!/bin/sh
#
# #!/usr/local/bin/dash
# e_constant.sh
# Brother's formula .
#... (2 Replies)
Discussion started by: wisecracker
2 Replies
LEARN ABOUT LINUX
wxradiobox
wxRadioBox(3erl) Erlang Module Definition wxRadioBox(3erl)NAME
wxRadioBox - See external documentation: wxRadioBox.
DESCRIPTION
See external documentation: wxRadioBox .
This class is derived (and can use functions) from:
wxControl
wxWindow
wxEvtHandler
DATA TYPES
wxRadioBox() :
An object reference, The representation is internal and can be changed without notice. It can't be used for comparsion stored on disc
or distributed for use on other nodes.
EXPORTS
new(Parent::wxWindow() (see module wxWindow), Id::integer(), Title::string(), Pos::{X::integer(), Y::integer()}, Size::{W::integer(),
H::integer()}, Choices::[[string()]]) -> wxRadioBox()
Equivalent to new(Parent, Id, Title, Pos, Size, Choices, []) .
new(Parent::wxWindow() (see module wxWindow), Id::integer(), Title::string(), Pos::{X::integer(), Y::integer()}, Size::{W::integer(),
H::integer()}, Choices::[[string()]], Options::[Option]) -> wxRadioBox()
Types Option = {majorDim, integer()} | {style, integer()} | {val, wx() (see module wx)}
See external documentation .
create(This::wxRadioBox(), Parent::wxWindow() (see module wxWindow), Id::integer(), Title::string(), Pos::{X::integer(), Y::integer()},
Size::{W::integer(), H::integer()}, Choices::[[string()]]) -> bool()
Equivalent to create(This, Parent, Id, Title, Pos, Size, Choices, []) .
create(This::wxRadioBox(), Parent::wxWindow() (see module wxWindow), Id::integer(), Title::string(), Pos::{X::integer(), Y::integer()},
Size::{W::integer(), H::integer()}, Choices::[[string()]], Options::[Option]) -> bool()
Types Option = {majorDim, integer()} | {style, integer()} | {val, wx() (see module wx)}
See external documentation .
enable(This::wxRadioBox()) -> bool()
Equivalent to enable(This, []) .
enable(This::wxRadioBox(), X::integer() | term()) -> bool()
See external documentation .
Alternatives:
enable(This::wxRadioBox(), N::integer()) -> enable(This,N, [])
enable(This::wxRadioBox(), [Option]) -> bool()
Option = {enable, bool()}
enable(This::wxRadioBox(), N::integer(), Options::[Option]) -> bool()
Types Option = {enable, bool()}
See external documentation .
getSelection(This::wxRadioBox()) -> integer()
See external documentation .
getString(This::wxRadioBox(), N::integer()) -> string()
See external documentation .
setSelection(This::wxRadioBox(), N::integer()) -> ok
See external documentation .
show(This::wxRadioBox()) -> bool()
Equivalent to show(This, []) .
show(This::wxRadioBox(), X::integer() | term()) -> bool()
See external documentation .
Alternatives:
show(This::wxRadioBox(), N::integer()) -> show(This,N, [])
show(This::wxRadioBox(), [Option]) -> bool()
Option = {show, bool()}
show(This::wxRadioBox(), N::integer(), Options::[Option]) -> bool()
Types Option = {show, bool()}
See external documentation .
getColumnCount(This::wxRadioBox()) -> integer()
See external documentation .
getItemHelpText(This::wxRadioBox(), N::integer()) -> string()
See external documentation .
getItemToolTip(This::wxRadioBox(), Item::integer()) -> wxToolTip() (see module wxToolTip)
See external documentation .
getItemFromPoint(This::wxRadioBox(), Pt::{X::integer(), Y::integer()}) -> integer()
See external documentation .
getRowCount(This::wxRadioBox()) -> integer()
See external documentation .
isItemEnabled(This::wxRadioBox(), N::integer()) -> bool()
See external documentation .
isItemShown(This::wxRadioBox(), N::integer()) -> bool()
See external documentation .
setItemHelpText(This::wxRadioBox(), N::integer(), HelpText::string()) -> ok
See external documentation .
setItemToolTip(This::wxRadioBox(), Item::integer(), Text::string()) -> ok
See external documentation .
destroy(This::wxRadioBox()) -> ok
Destroys this object, do not use object again
AUTHORS
<>
wxErlang 0.98.9 wxRadioBox(3erl)