Phantom Documentation

[Help Home] [Phantom Home]
InputReal

real InputReal(string)

Return Type: real
Parameters: string Prompt

Description:
InputReal prompts the user to enter a floating point value and returns the input. The Prompt is displayed, after which a floating point value must be entered. An error occurs if a non-floating point is entered.

Example Code
1 >>real r = InputReal("Enter your weight: ");
Enter your weight: -60.4
2 >>disp(r);
-60.40000000000000


 


Copyright 2000-2011 Phantom Automated Solutions