Categories:
Audio (13)
Biotech (29)
Bytecode (36)
Database (77)
Framework (7)
Game (7)
General (507)
Graphics (53)
I/O (35)
IDE (2)
JAR Tools (101)
JavaBeans (21)
JDBC (121)
JDK (426)
JSP (20)
Logging (108)
Mail (58)
Messaging (8)
Network (84)
PDF (97)
Report (7)
Scripting (84)
Security (32)
Server (121)
Servlet (26)
SOAP (24)
Testing (54)
Web (15)
XML (309)
Collections:
Other Resources:
What Is poi-5.2.3.jar?
What Is poi-5.2.3.jar?
✍: FYIcenter.com
poi-5.2.3.jar is one of the JAR files for Apache POI 5.2.3, which provides an API for Microsoft document files of Word, Excel, PowerPoint, and Visio.
poi-5.2.3.jar supports Apache POI components that read and write Microsoft's OLE 2 Compound document format, which is used in early versions of Microsoft Office tools like Word 97, Excel 97, PowerPoint 97, etc.
poi-5.2.3.jar is distributed as part of the poi-bin-5.2.3-20220909.zip download file.
JAR File Size and Download Location:
JAR name: poi-5.2.3.jar Target JDK version: 9 File name: poi.jar, poi-5.2.3.jar File size: 2964641 bytes Release date: 09-09-2022 Download: Apache POI Website
Here are Java Source Code files for poi-5.2.3.jar:
⏎ org/apache/poi/ss/formula/functions/Complex.java
/* ==================================================================== Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==================================================================== */ package org.apache.poi.ss.formula.functions; import java.util.Locale; import org.apache.poi.ss.formula.OperationEvaluationContext; import org.apache.poi.ss.formula.eval.ErrorEval; import org.apache.poi.ss.formula.eval.EvaluationException; import org.apache.poi.ss.formula.eval.OperandResolver; import org.apache.poi.ss.formula.eval.StringEval; import org.apache.poi.ss.formula.eval.ValueEval; /** * Implementation for Excel COMPLEX () function. * <p> * <b>Syntax</b>:<br> <b>COMPLEX </b>(<b>real_num</b>,<b>i_num</b>,<b>suffix </b> )<br> * <p> * Converts real and imaginary coefficients into a complex number of the form x + yi or x + yj. * <p> * All complex number functions accept "i" and "j" for suffix, but neither "I" nor "J". * Using uppercase results in the #VALUE! error value. All functions that accept two * or more complex numbers require that all suffixes match. * <p> * <b>real_num</b> The real coefficient of the complex number. * If this argument is nonnumeric, this function returns the #VALUE! error value. * <p> * <b>i_num</b> The imaginary coefficient of the complex number. * If this argument is nonnumeric, this function returns the #VALUE! error value. * <p> * <b>suffix</b> The suffix for the imaginary component of the complex number. * <ul> * <li>If omitted, suffix is assumed to be "i".</li> * <li>If suffix is neither "i" nor "j", COMPLEX returns the #VALUE! error value.</li> * </ul> */ public class Complex extends Var2or3ArgFunction implements FreeRefFunction { public static final FreeRefFunction instance = new Complex(); public static final String DEFAULT_SUFFIX = "i"; public static final String SUPPORTED_SUFFIX = "j"; @Override public ValueEval evaluate(int srcRowIndex, int srcColumnIndex, ValueEval real_num, ValueEval i_num) { return this.evaluate(srcRowIndex, srcColumnIndex, real_num, i_num, new StringEval(DEFAULT_SUFFIX)); } @Override public ValueEval evaluate(int srcRowIndex, int srcColumnIndex, ValueEval real_num, ValueEval i_num, ValueEval suffix) { ValueEval veText1; try { veText1 = OperandResolver.getSingleValue(real_num, srcRowIndex, srcColumnIndex); } catch (EvaluationException e) { return e.getErrorEval(); } double realNum; try { realNum = OperandResolver.coerceValueToDouble(veText1); } catch (EvaluationException e) { return ErrorEval.VALUE_INVALID; } ValueEval veINum; try { veINum = OperandResolver.getSingleValue(i_num, srcRowIndex, srcColumnIndex); } catch (EvaluationException e) { return e.getErrorEval(); } double realINum; try { realINum = OperandResolver.coerceValueToDouble(veINum); } catch (EvaluationException e) { return ErrorEval.VALUE_INVALID; } String suffixValue = OperandResolver.coerceValueToString(suffix); if (suffixValue.length() == 0) { suffixValue = DEFAULT_SUFFIX; } if (suffixValue.equals(DEFAULT_SUFFIX.toUpperCase(Locale.ROOT)) || suffixValue.equals(SUPPORTED_SUFFIX.toUpperCase(Locale.ROOT))) { return ErrorEval.VALUE_INVALID; } if (!(suffixValue.equals(DEFAULT_SUFFIX) || suffixValue.equals(SUPPORTED_SUFFIX))) { return ErrorEval.VALUE_INVALID; } StringBuilder strb = new StringBuilder(); if (realNum != 0) { if (isDoubleAnInt(realNum)) { strb.append((int)realNum); } else { strb.append(realNum); } } if (realINum != 0) { if (strb.length() != 0) { if (realINum > 0) { strb.append("+"); } } if (realINum != 1 && realINum != -1) { if (isDoubleAnInt(realINum)) { strb.append((int)realINum); } else { strb.append(realINum); } } strb.append(suffixValue); } return new StringEval(strb.toString()); } private boolean isDoubleAnInt(double number) { return (number == Math.floor(number)) && !Double.isInfinite(number); } @Override public ValueEval evaluate(ValueEval[] args, OperationEvaluationContext ec) { if (args.length == 2) { return evaluate(ec.getRowIndex(), ec.getColumnIndex(), args[0], args[1]); } if (args.length == 3) { return evaluate(ec.getRowIndex(), ec.getColumnIndex(), args[0], args[1], args[2]); } return ErrorEval.VALUE_INVALID; } }
⏎ org/apache/poi/ss/formula/functions/Complex.java
Or download all of them as a single archive file:
File name: poi-5.2.3-src.zip File size: 2479830 bytes Release date: 2022-09-09 Download
⇒ What Is poi-ooxml-5.2.3.jar?
⇐ What Is poi-bin-5.2.3-20220909.zip?
2017-04-04, 93883👍, 0💬
Popular Posts:
JDK 11 jdk.jdi.jmod is the JMOD file for JDK 11 JDI (Java Debug Interface) tool. JDK 11 JDI tool com...
How to download and install Apache XMLBeans-2.6.0.zip? If you want to try the XMLBeans Java library,...
What Is js.jar in Rhino JavaScript 1.7R5? js.jar in Rhino JavaScript 1.7R5 is the JAR file for Rhino...
Jackson is "the Java JSON library" or "the best JSON parser for Java". Or simply as "JSON for Java"....
layout.jar is a component in iText Java library to provide layout functionalities. iText Java librar...