<c:set var="rezult.a" value="4"/>
<c:set var="rezult.b" value="10"/>
<%
Float result_A = Float.valueOf("" + pageContext.getAttribute("rezult.a", PageContext.PAGE_SCOPE));
Float result_B = Float.valueOf("" + pageContext.getAttribute("rezult.b", PageContext.PAGE_SCOPE));
MathContext myMathContext = new MathContext(15, RoundingMode.HALF_UP);
BigDecimal bd;
bd = new BigDecimal((float)result_A/result_B, myMathContext);
BigDecimal bdRounded = bd.setScale(2, RoundingMode.HALF_UP);
pageContext.getSession().setAttribute("RESULT", bdRounded.floatValue());
%>
<br>
RESULT: ${RESULT}
RESULT: 0.4
c:\Server\Apache\bin>chcp
Текущая кодовая страница: 866
c:\Server\Apache\bin>chcp 1251
Текущая кодовая страница: 1251
SQL> select * from customers;
ID NAME
============ ==================================================
1 first
2 ўв®а®©
4 зҐвўҐавл©
5 пятый
AuthServer = Srp, Legacy_Auth
UserManager = Srp, Legacy_Auth
WireCrypt = Enabled
CREATE USER SYS PASSWORD 'пароль' USING PLUGIN Legacy_UserManager;
GRANT SELECT, UPDATE, INSERT, DELETE ON customers TO SYS;
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = CLRExtProc)
(ORACLE_HOME = d:\app\drno\product\12.1.0\dbhome_1)
(PROGRAM = extproc)
(ENVS = "EXTPROC_DLLS=ONLY:d:\app\drno\product\12.1.0\dbhome_1\bin\oraclr12.dll")
)
)
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
)
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.10.41)(PORT = 1521))
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
)
)
ORACLE_SERVER =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.10.41)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = mycrm)
)
)
<proxy>
<id>optional</id>
<active>true</active>
<protocol>http</protocol>
<username>имя</username>
<password>пароль</password>
<host>proxy</host>
<port>111</port>
<nonProxyHosts>local.net|some.host.com</nonProxyHosts>
</proxy>
Годы Единиц На 1000 человек населения 1)
1950 1222971 12,0
1960 1499581 12,5
1970 1319227 10,1
1980 1464579 10,6
1990 1319928 8,9
1995 1075219 7,3
2000 897327 6,2
2001 1001589 6,9
2002 1019762 7,1
2003 1091778 7,5
2004 979667 6,8
2005 1066366 7,4
2006 1113562 7,8
2007 1262500 8,8
2008 1179007 8,3
2009 1199446 8,4
2010 1215066 8,5
2011 1316011 9,2
2012 1213598 8,5
2013 1225501 8,5
20142) 1225985 8,4
2015 1161068 7,9