Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
99c00b09
Kaydet (Commit)
99c00b09
authored
Şub 03, 2015
tarafından
Takeshi Abe
Kaydeden (comit)
Julien Nabet
Şub 04, 2015
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fix a little bit creative pi value
Change-Id: I09802fc799a892c322d8b69f16995b2f99da1f9c
üst
52d1de87
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
FNumericFunctions.cxx
connectivity/source/drivers/file/FNumericFunctions.cxx
+5
-3
FNumericFunctions.hxx
connectivity/source/inc/file/FNumericFunctions.hxx
+1
-1
No files found.
connectivity/source/drivers/file/FNumericFunctions.cxx
Dosyayı görüntüle @
99c00b09
...
@@ -25,6 +25,8 @@
...
@@ -25,6 +25,8 @@
using
namespace
connectivity
;
using
namespace
connectivity
;
using
namespace
connectivity
::
file
;
using
namespace
connectivity
::
file
;
static
const
double
fPi
=
3.14159265358979323846
;
ORowSetValue
OOp_Abs
::
operate
(
const
ORowSetValue
&
lhs
)
const
ORowSetValue
OOp_Abs
::
operate
(
const
ORowSetValue
&
lhs
)
const
{
{
if
(
lhs
.
isNull
()
)
if
(
lhs
.
isNull
()
)
...
@@ -160,7 +162,7 @@ ORowSetValue OOp_Sqrt::operate(const ORowSetValue& lhs) const
...
@@ -160,7 +162,7 @@ ORowSetValue OOp_Sqrt::operate(const ORowSetValue& lhs) const
ORowSetValue
OOp_Pi
::
operate
(
const
::
std
::
vector
<
ORowSetValue
>&
/*lhs*/
)
const
ORowSetValue
OOp_Pi
::
operate
(
const
::
std
::
vector
<
ORowSetValue
>&
/*lhs*/
)
const
{
{
return
3.141592653589793116
;
return
fPi
;
}
}
ORowSetValue
OOp_Cos
::
operate
(
const
ORowSetValue
&
lhs
)
const
ORowSetValue
OOp_Cos
::
operate
(
const
ORowSetValue
&
lhs
)
const
...
@@ -225,7 +227,7 @@ ORowSetValue OOp_Degrees::operate(const ORowSetValue& lhs) const
...
@@ -225,7 +227,7 @@ ORowSetValue OOp_Degrees::operate(const ORowSetValue& lhs) const
return
lhs
;
return
lhs
;
double
nLhs
=
lhs
;
double
nLhs
=
lhs
;
return
nLhs
*
180
*
(
1.0
/
3.141592653589793116
);
return
nLhs
*
180
*
(
1.0
/
fPi
);
}
}
ORowSetValue
OOp_Radians
::
operate
(
const
ORowSetValue
&
lhs
)
const
ORowSetValue
OOp_Radians
::
operate
(
const
ORowSetValue
&
lhs
)
const
...
@@ -234,7 +236,7 @@ ORowSetValue OOp_Radians::operate(const ORowSetValue& lhs) const
...
@@ -234,7 +236,7 @@ ORowSetValue OOp_Radians::operate(const ORowSetValue& lhs) const
return
lhs
;
return
lhs
;
double
nLhs
=
lhs
;
double
nLhs
=
lhs
;
return
nLhs
*
3.141592653589793116
*
(
1.0
/
180.0
);
return
nLhs
*
fPi
*
(
1.0
/
180.0
);
}
}
...
...
connectivity/source/inc/file/FNumericFunctions.hxx
Dosyayı görüntüle @
99c00b09
...
@@ -232,7 +232,7 @@ namespace connectivity
...
@@ -232,7 +232,7 @@ namespace connectivity
> SELECT PI();
> SELECT PI();
-> 3.141593
-> 3.141593
> SELECT PI()+0.000000000000000000;
> SELECT PI()+0.000000000000000000;
-> 3.141592653589793
116
-> 3.141592653589793
238
*/
*/
class
OOp_Pi
:
public
ONthOperator
class
OOp_Pi
:
public
ONthOperator
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment