2016-03-14 20:54:47 +00:00
|
|
|
package com.bytezone.diskbrowser.visicalc;
|
|
|
|
|
2020-02-10 11:05:40 +00:00
|
|
|
// -----------------------------------------------------------------------------------//
|
2017-03-20 01:45:14 +00:00
|
|
|
class Pi extends ConstantFunction
|
2020-02-10 11:05:40 +00:00
|
|
|
// -----------------------------------------------------------------------------------//
|
2016-03-14 20:54:47 +00:00
|
|
|
{
|
2020-02-10 11:05:40 +00:00
|
|
|
// ---------------------------------------------------------------------------------//
|
2017-03-18 08:33:40 +00:00
|
|
|
Pi (Cell cell, String text)
|
2020-02-10 11:05:40 +00:00
|
|
|
// ---------------------------------------------------------------------------------//
|
2016-03-14 20:54:47 +00:00
|
|
|
{
|
2017-03-18 08:33:40 +00:00
|
|
|
super (cell, text);
|
2017-03-03 23:41:08 +00:00
|
|
|
|
2017-03-18 09:21:11 +00:00
|
|
|
assert text.equals ("@PI") : text;
|
|
|
|
|
2017-03-20 01:45:14 +00:00
|
|
|
value = Math.PI;
|
2017-03-23 13:30:41 +00:00
|
|
|
valueType = ValueType.NUMBER;
|
2016-03-14 20:54:47 +00:00
|
|
|
}
|
2016-03-23 23:37:59 +00:00
|
|
|
}
|