## Linux and UNIX Man Pages

Test Your Knowledge in Computers #515
Difficulty: Easy
A variable's type (or data type) is the characterization of the data that it represents.
True or False?

# fmaxf(3m) [opensolaris man page]

```fmax(3M)						  Mathematical Library Functions						  fmax(3M)

NAME
fmax, fmaxf, fmaxl - determine maximum numeric value of two floating-point numbers

SYNOPSIS
c99 [ flag... ] file... -lm [ library... ]
#include <math.h>

double fmax(double x, double y);

float fmaxf(float x, float y);

long double fmaxl(long double x, long double y);

DESCRIPTION
These functions determine the maximum numeric value of their arguments. NaN arguments are treated as missing data: if one argument is a NaN
and the other numeric, these functions choose the numeric value.

RETURN VALUES
Upon successful completion, these functions return the maximum numeric value of their arguments.

If just one argument is a NaN, the other argument is returned.

If x and y are NaN, a NaN is returned.

ERRORS
No errors are defined.

ATTRIBUTES
See attributes(5) for descriptions of the following attributes:

+-----------------------------+-----------------------------+
|      ATTRIBUTE TYPE	     |	    ATTRIBUTE VALUE	   |
+-----------------------------+-----------------------------+
|Interface Stability	     |Standard			   |
+-----------------------------+-----------------------------+
|MT-Level		     |MT-Safe			   |
+-----------------------------+-----------------------------+

SunOS 5.11							    12 Jul 2006 							  fmax(3M)```

## Check Out this Related Man Page

```fmax(3M)						  Mathematical Library Functions						  fmax(3M)

NAME
fmax, fmaxf, fmaxl - determine maximum numeric value of two floating-point numbers

SYNOPSIS
cc [ flag... ] file... -lm [ library... ]
#include <math.h>

double fmax(double x, double y);

float fmaxf(float x, float y);

long double fmaxl(long double x, long double y);

DESCRIPTION
These functions determine the maximum numeric value of their arguments. NaN arguments are treated as missing data: if one argument is a NaN
and the other numeric, these functions choose the numeric value.

RETURN VALUES
Upon successful completion, these functions return the maximum numeric value of their arguments.

If just one argument is a NaN, the other argument is returned.

If x and y are NaN, a NaN is returned.

ERRORS
No errors are defined.

ATTRIBUTES
See attributes(5) for descriptions of the following attributes:

+-----------------------------+-----------------------------+
|      ATTRIBUTE TYPE	     |	    ATTRIBUTE VALUE	   |
+-----------------------------+-----------------------------+
|Interface Stability	     |Standard			   |
+-----------------------------+-----------------------------+
|MT-Level		     |MT-Safe			   |
+-----------------------------+-----------------------------+

SunOS 5.10							    1 Sep 2002								  fmax(3M)```

## Help Replacing Characters in Flat File

I was wondering if somebody could help me with something on UNIX. I have a file that looks like this - "nelson,bill","bill","123 Main St","Mpls","MN",55444,8877,william I want to replace all comma with pipes (|), except if the comma is within double quotes. (The first field is an example of...

## Perl code to differentiate numeric and non-numeric input

Hi All, Is there any code in Perl which can differentiate between numeric and non-numeric input?

## Check for numeric inputs

Hi All, How do i modify the below script such that if the input is numeric, it will give the numeric digit, else it will ouput "0" echo "xxx" | awk '/^+\$/'

## maximum number of arguments

Hi, What is the maximum number of arguments that could be passed to zsh ? To find out that I tried a simple script. And the maximum number of arguments that could be passed turned out to be 23394 #! /bin/zsh arg=1 i=1 subIndex=23000 while do arg=\$arg" "\$i i=\$((\$i + 1))...

## if \$varib contains non-numeric charctr then...

I've asked a similiar question to this, but this time it is different, a little more restrictive....I have a variable, \$varib, that should always only contain numeric characters. I need a way to echo something if the variable contains a letter, space, or some other punctuation character, ,.!>?"...

## check the given string is numeric or not.

Hi, how to check the given string is numeric or not , without converting ( using strtol...). for ex: if string is C01 - non-numeric data if string is 001 - numeric data TIA

## how to grep only particular length of numeric values

hi i have two types of file 1. temp.0000000001.data (10 digit numeric) 2. temp.000000001.data (9 digit numeric) i want to search a file which is having 10 digit numeric in between the file name. i use command like this.. ls | grep temp.^*.data but this will give both the files as...

## Find and Replace random numeric value with non-numeric value

Can someone tell me how to change the first column in a very large 17k line file from a random 10 digit numeric value to a non numeric value. The format of lines in the file is: 1702938475,SNU022,201004 the first 10 numbers always begin with 170

## 3 numbers and return the maximum

Hello, I am doing bash and for that doing excersices. The folowing one asks for 3 numbers and is suppose to return the maximum. An error should be returned if on of the numbers is missing. I managed to solve it. Can you give me other ways or advices. #!/bin/bash #Date: 2010.10.19 #Ecrire un...

## Listing numeric strings alone

i have a file called 'test.txt' which contains the below data. abc123 123445 123abc 23224q From the above data, i want to display the line which contains only numeric . So i have tried the below commands with sed sed -n '/^\$/p' test.txt sed '/^\$/!d' test.txt But it...

## Scripting help

Hi, I'm using ksh, I have a file called testfile.txt with all characters, I would like to check the file, if all are capital letter then it will return 1, if it not all capital letter then return 2. I know i can use tr to do it, but just can't think of better way to write the script. Appreciate...