Learn more about me
I am a Big Data Engineer in Impetus.
Overall 6 years of professional IT experience which includes experience in Big data ecosystem.Strong experience in working with Apache Spark and various other Big data technologies. Excellent communication skills, analytical approach to problem solving, proactive and creative.
Happy Clients
Projects
Certifications
Organizations
While working at Cognizant, I worked with Hardik on a Anti money laundering project. He showed thorough knowledge of python programming design and optimization.
Excellent Spark Developer. I would like to work with him again given the opportunity. A very valuable asset to any organization who would like to take advantage of his skillset.
Focused and excellent delivery throughout the engagement. Was always proactive and quick decision maker. Would not hesitate to work with or recommend Hardik. All the best !
Hardik is an amazing professional to work with. He is a value add to any team he's o- boarded to. He always is aware of the updates in the project and likes to stay on top of his game! Kudos to you!
Check My Resume
Overall 5 years of professional IT experience which includes experience in Big data ecosystem.Strong experience in working with Apache Spark and various other Big data technologies.
Krishna Engineering College, Ghaziabad, IN
Kendriya Vidyalaya, Dehradun, IN
Brooklyn School, Dehradun, IN
Impetus, Gurugram, IN
Communication intelligence client
Cognizant Technology Service, Gurugram, IN
Financial service client-European Bank
Anti Money Laundering (AML)
Operational Data Store (ODS)
Accenture, Gurugram, IN
US telecom client-Postpaid
UK telecom client
US telecom client- Prepaid
My Certificates
Certified by Oracle
Contact Me
Gurgaon, IN, 122001
<EMAIL_ADDRESS>+91-965-012-9605


PronType
: pronominal type
| Values: | Art | Con | Dem | Emp | Ind | Int | Neg | Prs | Rcp | Rel | Tot |
The pronominal type of a word (pronoun, determiner, adverb and others).
Provisional schema and explanations.
Art
: article (non standard)
This value is exceptional, since Latin, stably through its history, has never presented articles; it represents the encroaching of new Romance varieties into the written language.
Examples
- ly ‘the’ (in Thomas Aquinas, XIIIth c.)
Con
: contrastive
Contrasting other referred entities.
Examples
- alter ‘other’
Dem
: demonstrative
Pinpointing an entity.
Examples
- ille ‘that (one)’
Emp
: emphatic (deprecated)
Giving emphasis to an entity (no more used and switched to other features).
Examples
- ipse ‘same (one)’ (obsolete annotation)
Ind
: indefinite
Referring to a non-further specified entity.
Examples
- aliquis ‘someone’
Int
: interrogative (debatable)
Substituing for entities in interrogative or interrogative-like clauses. Often seen to alternate with relative uses.
Examples
- quis ‘who’
Neg
: negative
Indicating the non existence of possibly referrable entities.
Examples
- nemo ‘nobody’ (contraction from ne homo ‘not a man’)
Prs
: personal
Bearing the grammatical categories of person without further deictic value.
Examples
- nos ‘we’
Rcp
: reciprocal
Indicating that a plural number of entities affect one an other, according to the predicate.
Examples
- inuicem ‘one the other’ (lit. from the oblique expression in uicem ‘[one] in the turn [of the other]’)
Rel
: relative
Referring to an argument of the main clause in a subordinate clause and acting as a link.
Examples
- qui ‘who/which/that’
Tot
: total (collective)
Referring to an entity in its entirety, or to all entities of a given set.
Examples
- totus ‘all’
PronType in other languages: [arr] [bej] [bg] [bm] [bor] [cs] [el] [en] [fi] [fr] [ga] [gd] [gn] [gub] [gun] [hu] [hy] [it] [kpv] [ky] [la] [myu] [pcm] [qpm] [sga] [sl] [sv] [tr] [tt] [u] [uk] [urj]


48+ How To Print A Logo On Cricut Pics.  None of the explore machines have the capability to print then cut on different colors or very reflective material;
Hi ali, i have just been gifted a cricut personal and was wondering if you can print svg files with a computer? Import the file or write out the text. Learn how to design a logo online with ease.
This is how it should look.
This is how it should look. This month's cricut tutorial is one i've been wanting to write for a while. There are many designs within design space that are already designed to be used as a print then cut image. Get the handdrawn art supplies stickers as a free download.


Components
Custom In-Line Edit with AutoSave
Print Button
Sign Up Button
Add New Button
Compose Button
Edit Button (In-Line)
Save Button (Row Edit)
Add Button (Row Add)
Delete Button (In-Line)
Delete Button
Button
Search Button
Login Button
Add to Cart Button


This Website
This website was created by UsernameFodder. The markup, styling, and scripting were all done from scratch, because why not?
Questions
The original sources of the questions, answers, and nature descriptions used for this quiz are the following Pokémon Mystery Dungeon (PMD) games:
- Pokémon Mystery Dungeon: Red/Blue Rescue Team
- Pokémon Mystery Dungeon: Explorers of Time/Darkness
- Pokémon Mystery Dungeon: Explorers of Sky
Response Point Values
The nature point values for responses were taken from the PMD Info Spreadsheet, created and verified by the researcher ShinxHijinx.
Modifications from the Source
All text was kept as close as possible to that of the original games, but minor modifications were made in a very limited number of cases. Response point values for certain questions were modified where appropriate. See the details page for more information.
Font
The lovely Mystery Dungeon font used for this site is a modified version of the Wonder Mail font, which was "painstakingly assembled by hand" by ShinxHijinx. I modified a few characters ('O', 'o', '8', '%', '♂', and '♀' to be specific) that weren't rendering properly in the original font.
Sprites
Sprites from the PMD: Explorers games were used. They were taken from the Spriter's Resource website. Direct links:


My name is Matt Shenton and I am working for Suffolk Libraries as a dedicated ‘Literacy Ambassador’ for the next year. My role is to work with schools, statutory and voluntary organisations and other interested parties to promote reading for pleasure and the importance of literacy to young people and their families in Suffolk.


FAKE NEWS EXPLAINED
CHROME EXTENSION "FAKE NEWS"
Against trolling, falsifying and deceiving news
Red panda
To see why we rated the article #placeholderForArticleTitle with score #placeholderForScore, follow this link.
Where do we find #placeholderForAnimal?
 With our extension, anyone can find out what news are worthy of their time and who is only "clickbaiting" them. Let's put an end to media exaggeration, sensational headlines and overall low quality of the content just by clicking a button.
Historical assesment
Tuki bo pregled gibanja števila živali?
Regions of occurence
- title bias 5%
- content bias 60%
- domain bias 15%
- image scam 20%
- user reporting: for every user flagging the article as fake news, we take away 0.1% of its “trustworthiness” up to max 40% (at least 400 users)
Threats
We would like to give thanks to the below APIs and libraries that we have used, for helping us to create a Fake News Extension.
- MachineBox's Fakebox for analyzing the article.
- Infringement Report for finding webpages where same photos that are found in the article, are already used.
- Mercury Postlight for transforming analysed article into clean text.
The team
|
|
Patricija Brečko is a 22 year old student of Faculty of Computer and Information Science who likes to work with data, even more so in a good team. She drinks a lot of coffee and wears slippers. LinkedIn profile |
|
|
Neža Đukić is a 22 year old aquarius and Multimedia student.   LinkedIn profile |
|
|
Luka Zakšek is a 22 year old Multimedia student. He likes to do sports, listen to different music genres and gets reborn every summer. LinkedIn profile |


Cheshire3 Objects: Workflow |
A workflow is similar to the process chain concept of an index, but behaves at a more global level. It will allow the configuration of a workflow using Cheshire3 objects and simple code to be defined and executed for input objects. For example, one might define a common workflow pattern of PreParsers, a Parser and then indexing routines in the XML configuration, and then run each document in a documentFactory through it.
This allows users who are not familiar with Python, but who are familiar with XML and the Cheshire3 design to implement tasks as required by changing only configuration files. It thus also allows a user to configure personal workflows in a Cheshire3 system which they don't have permission to modify.
Workflows have the following capabilities:
Further documentation is available on configuring Cheshire3 workflows:
The following implementations are pre-configured and ready to use.
They may be used out-of-the-box in configurations for other Workflows, or in code by getting the object from a Server.
It is also possible to over-ride any or all of these Workflows for a specific application (e.g. by adding additional PreParsers to the PreParserWorkflow) in your database config.
Module: cheshire3.workflow
Classes:
Methods:
| Function | Parameters | Returns | Description |
|---|---|---|---|
| __init__ | domNode, parentObject | The constructer takes a DOM tree containing the configuration of the index and the object which the database should consider as its parent, normally a database. | |
| process | session, object | object | Executes the code as constructed from the XML configuration on the given object. The return value is the last object to be produced by the execution. |


| Rdiff {tools} | R Documentation |
Given two R output files, compute differences ignoring headers, footers and some other differences.
Rdiff(from, to, useDiff = FALSE, forEx = FALSE, nullPointers = TRUE, Log = FALSE)
from, to |
filepaths to be compared |
useDiff |
should |
forEx |
logical: extra pruning for ‘-Ex.Rout’ files to exclude the header. |
nullPointers |
logical: should the displayed addresses of
pointers be set to |
Log |
logical: should the returned value include a log of differences found? |
The R startup banner and any timing information from R CMD
BATCH
are removed from both files, together with lines about
loading packages. UTF-8 fancy quotes (see sQuote
) and
on Windows, Windows' so-called ‘smart quotes’, are mapped to
a simple quote. Addresses of environments, compiled bytecode and
other exotic types expressed as hex addresses
(e.g., <environment: 0x12345678>
) are mapped to
0x00000000
. The files are then compared line-by-line. If
there are the same number of lines and useDiff
is false, a
simple diff -b
-like display of differences is printed
(which ignores trailing spaces and differences in numbers of
consecutive spaces), otherwise diff -bw
is called on the
edited files. (This tries to ignore all differences in whitespace:
note that flag -w is not required by POSIX but is supported
by GNU, Solaris and FreeBSD versions.)
This can compare uncompressed PDF files, ignoring differences in creation and modification dates.
Mainly for use in examples, text from marker > ## IGNORE_RDIFF_BEGIN up to (but not including) > ## IGNORE_RDIFF_END is ignored.
If Log
is true, a list with components status
(see
below) and out
, a character vector of descriptions of
differences, possibly of zero length.
Otherwise, a status indicator, 0L
if and only if no differences
were found.
The shell script run as R CMD Rdiff
.


--- layout: default title: Portfolio permalink: /portfolio/ header-order: 1 ---
Harringa.com
My Time
Pi Temp. Monitor


Success! You have successfully created a new project.
{% endif %}
{% if updated %}
Success! The project has been successfully updated!
{% endif %}
Hello!  You may also add Geotagged Images, KML Tracks, and Other Files to this project, by clicking "Add a New Dataset" below.
{% endif %}
Project Details {% if project_id %}View on Map{% endif %}


{% extends 'session/base.html' %} {% load static %} {% block title %}Login{% endblock %} {% block content %}
- Our Mission -
Provide you the best veterinary recordkeeping assistant available.
- Our Philosophy -
At ERC, we bring our personal familial connection to equestrian veterinary practice
to bear in developing apps. Consulting with as many domain experts as possible, we
pursue to perfect our products for your benefit.
Coming Soon


{% extends 'main.html' %} {% block title %}All Courses{% endblock %} {% block content %}
| Name | Course | Semester | Project | Actions |
|---|---|---|---|---|
| {{ team.team_name }} | {{ team.course_designation }}—{{ team.course_name }} | {{ team.semester }} | {{ team.project_name }} | Edit Deactivate |
| No teams |


This operation cannot be undone.
Extension grant will be deleted, applications will not be able to use this extension grant anymore.Configure new extension grant to request OAuth 2.0 access tokens. OAuth 2.0 specification defines four grant types : authorization code, implicit, resource owner password credentials, and client credentials. Extension grant act as an extensibility mechanism for defining additional types.


| Class Summary |
| ActionOutScheduled | Action attribute of the JOB tag in the Jobs Scheduled request |
| Report | Gives information about the recipient's phone number |
| RequestTypeOutStatus | Used in the REQUEST_TYPE tag of the SMS Status request |
| SMSCheckBalance | Request used to get the balance of the user |
| SMSCheckBalance_Response | Response to a SMSCheckBalance request |
| SMSEstimatecost | Request used to determine a higher estimate of the final cost of the message |
| SMSEstimatecost_Response | Response to a SMSEstimatecost request |
| SMSJobsScheduledDelete | Request used to delete a scheduled job |
| SMSJobsScheduledModify | Request used to modify a scheduled message,
adding or removing recipients,
changing its message text,
its custom sender or its scheduled time |
| SMSJobsScheduledStatus | Request used to retrieve the overall status of a scheduled job |
| SMSJobsScheduled_Response | Response
to a SMSJobsScheduledStatus request,
to a SMSJobsScheduledModify request and
to a SMSJobsScheduledDelete request |
| SMSSend | Request to send SMS messages
specifying a text for the message,
a list of recipients and a personalized sender |
| SMSSend_Response | Response to a SMSSend request |
| SMSStatusAdhoc | Request used to retrieve the status of any set of SMS messages |
| SMSStatusJob | Request used to get the overall status of a job |
| SMSStatusRange | Request used to retrieve
the status of all SMS messages sent in a given time interval. |
| SMSStatus_Response | Response
to a SMSStatusJob request,
to a SMSStatusAdhoc request and
to a SMSStatusRange request |


number_format
(PHP 4, PHP 5, PHP 7)
number_format — 以千位分隔符方式格式化一个数字
说明
string number_format ( float $number [, int $decimals = 0 ] )
string number_format ( float $number , int $decimals = 0 , string $dec_point =
"." , string $thousands_sep = "," )
本函数可以接受1个、2个或者4个参数（注意：不能是3个）:
如果只提供第一个参数，number的小数部分会被去掉并且每个千位分隔符都是英文小写逗
号","
如果提供两个参数，number将保留小数点后的位数到你设定的值，其余同楼上
如果提供了四个参数，number 将保留decimals个长度的小数部分, 小数点被替换为
dec_point，千位分隔符替换为thousands_sep
参数
number
你要格式化的数字
decimals
要保留的小数位数
dec_point
指定小数点显示的字符
thousands_sep
指定千位分隔符显示的字符
返回值
格式化以后的 number.
更新日志
版本 说明
5.4.0 This function now supports multiple bytes in dec_point and thousands_sep.
Only the first byte of each separator was used in older versions.
范例
Example #1 number_format() Example
For instance, French notation usually use two decimals, comma (',') as decimal
separator, and space (' ') as thousand separator. This is achieved with this
line :
参见
• money_format() - Formats a number as a currency string
• sprintf() - Return a formatted string
• printf() - 输出格式化字符串
• sscanf() - 根据指定格式解析输入的字符
User Contributed Notes 66 notes
===============================================================================
It's not explicitly documented; number_format also rounds:
".number_format($number, 2, '.', ',')." ";
?>
0.001->0.00
0.002->0.00
0.003->0.00
0.004->0.00
0.005->0.01
0.006->0.01
0.007->0.01
0.008->0.01
0.009->0.01
===============================================================================
Outputs a human readable number.
1000000000000) return round(($n/1000000000000),1).' trillion';
else if($n>1000000000) return round(($n/1000000000),1).' billion';
else if($n>1000000) return round(($n/1000000),1).' million';
else if($n>1000) return round(($n/1000),1).' thousand';
return number_format($n);
}
?>
Outputs:
247,704,360 -> 247.7 million
866,965,260,000 -> 867 billion
===============================================================================
I ran across an issue where I wanted to keep the entered precision of a real
value, without arbitrarily rounding off what the user had submitted.
I figured it out with a quick explode on the number before formatting. I could
then format either side of the decimal.
===============================================================================
// Here is a function that produces the same output as number_format() but also
works with numbers bigger than 2^53.
function a_number_format($number_in_iso_format, $no_of_decimals=3,
$decimals_separator='.', $thousands_separator='', $digits_grouping=3){
// Check input variables
if (!is_numeric($number_in_iso_format)){
error_log("Warning! Wrong parameter type supplied in my_number_format()
function. Parameter \$number_in_iso_format is not a number.");
return false;
}
if (!is_numeric($no_of_decimals)){
error_log("Warning! Wrong parameter type supplied in my_number_format()
function. Parameter \$no_of_decimals is not a number.");
return false;
}
if (!is_numeric($digits_grouping)){
error_log("Warning! Wrong parameter type supplied in my_number_format()
function. Parameter \$digits_grouping is not a number.");
return false;
}
// Prepare variables
$no_of_decimals = $no_of_decimals * 1;
// Explode the string received after DOT sign (this is the ISO separator of
decimals)
$aux = explode(".", $number_in_iso_format);
// Extract decimal and integer parts
$integer_part = $aux[0];
$decimal_part = isset($aux[1]) ? $aux[1] : '';
// Adjust decimal part (increase it, or minimize it)
if ($no_of_decimals > 0){
// Check actual size of decimal_part
// If its length is smaller than number of decimals, add trailing
zeros, otherwise round it
if (strlen($decimal_part) < $no_of_decimals){
$decimal_part = str_pad($decimal_part, $no_of_decimals, "0");
} else {
$decimal_part = substr($decimal_part, 0, $no_of_decimals);
}
} else {
// Completely eliminate the decimals, if there $no_of_decimals is a
negative number
$decimals_separator = '';
$decimal_part = '';
}
// Format the integer part (digits grouping)
if ($digits_grouping > 0){
$aux = strrev($integer_part);
$integer_part = '';
for ($i=strlen($aux)-1; $i >= 0 ; $i--){
if ( $i % $digits_grouping == 0 && $i != 0){
$integer_part .= "{$aux[$i]}{$thousands_separator}";
} else {
$integer_part .= $aux[$i];
}
}
}
$processed_number = "{$integer_part}{$decimals_separator}{$decimal_part}";
return $processed_number;
}
$original_number=<PHONE_NUMBER>854775805;
echo a_number_format($original_number, 4, '.',"'",3);
// Outputs: 9'223'372'036'854'775'805.1230
===============================================================================
For Zero fill - just use the sprintf() function
$pr_id = 1;
$pr_id = sprintf("%03d", $pr_id);
echo $pr_id;
//outputs 001
-----------------
$pr_id = 10;
$pr_id = sprintf("%03d", $pr_id);
echo $pr_id;
//outputs 010
-----------------
You can change %03d to %04d, etc.
===============================================================================
Just an observation:
The number_format rounds the value of the variable.
$val1 = 1.233;
$val2 = 1.235;
$val3 = 1.237;
echo number_format($val1,2,",","."); // returns: 1,23
echo number_format($val2,2,",","."); // returns: 1,24
echo number_format($val3,2,",","."); // returns: 1,24
===============================================================================
If you use space as a separator, it will break on that space in HTML tables...
Furthermore, number_format doesn't like ' ' as a fourth parameter. I wrote
the following function to display the numbers in an HTML table.
function numberfix($number)
{
$number = number_format($number,0,","," ");
return str_replace(" ", " ", $number);
}
For use in:
===============================================================================
In my function my_number_format() [shown below] there was a bug.
If a negative number which is smaller than 1 was entered (-0,...), then the
result was wrongly positive because +0 is equal to -0 (the content of $tmp[0]
which was interpretet as numeric value).
Here is the corrected version:
Thanks to Federico Cassinelli for the bug report.
[EDIT BY danbrown AT php DOT net: The original note follows.]
Let's say we got the number $inp = 1234.56
By using
you can get the German format 1.234,56. (Comma as decimal separator and point
as thousand separator)
But I have a problem with that: I want to add commas as thousand separators and
change the decimal-separator (this could also be done with str_replace), but I
do not want to change the amount of fractional digits!
But since the 2nd argument of number_format is necessary to enter the 3rd and
4th argument, this cannot be done with number_format. You have to change the
fractional digits with this function.
But I want that 1234.56 changes into 1.234,56 and 1234.567890123456 changes
into 1.234,567890123456
So, I created following function, that doesn't change the amount of fractional
digits:
===============================================================================
I'm not sure if this is the right place anyway, but "ben at last dot fm"'s
ordinal function can be simplified further by removing the redundant "floor"
(the result of floor is still a float, it's the "%" that's converting to int)
and outer switch.
Note that this version also returns the number with the suffix on the end, not
just the suffix.
===============================================================================
To prevent the rounding that occurs when next digit after last significant
decimal is 5 (mentioned by several people below):
have fun!
===============================================================================
I was looking for a SIMPLE way to format currency and account for negative
values while not losing the calculation properties of my number. Here's my
function - it's not rocket science, but maybe can help someone along the way.
Sample use:
Returns (for example) $ 44,561.00 or, if a negative ($ 407,250.00)
This way, I use my 1st variable for calculations and my 2nd variable for
output. I'm sure there are better ways to do it, but this got me back on
track.
===============================================================================
To separate big numbers like the spanish language you can do this:
Tis example is based on facebook followers:
number_format ($infoF , 0 , ' , ' , '.');
it will output:
//1.187.037
instead of comas.
===============================================================================
formatting numbers may be more easy if u use number_format function.
I also wrote this :
function something($number)
{
$locale = localeconv();
return number_format($number,
$locale['frac_digits'],
$locale['decimal_point'],
$locale['thousands_sep']);
}
hope this helps =)
[]'s
===============================================================================
This function is used for reformatting already formatted numbers.
0, 'decimalSeparator' => '.',
'thousandSeparator' => '']; # Default format
# Find decimal separator
# The decimal separator is the one that is the last and does not occur
more than once
if ($letters = str_replace(' ', '', $number)) { # Replace spaces
if ($letters = preg_replace('/^-/', '', $letters)) { # Remove minus
if ($letters = preg_replace('/[0-9]/', '', $letters)) { # Get
all non digits
$lastletter = substr($letters, -1); # Returns last char
if (substr_count($letters, $lastletter) == 1) {
if (strpos($oldDecimalSeparator, $lastletter) !==
false)
$oldDecimalSep = $lastletter;
else
return $number;
}
}
}
}
$number = preg_replace('/[^0-9-]/', '', $number); # Remove all non
digits except 'minus'
if ($oldDecimalSep)
$number = str_replace($oldDecimalSep, '.', $number); # Format to
float
if ($multiplier != 1)
$number = $number * $multiplier;
# Convert float to new format
$number = number_format($number,
$format['numOfDecimals'],
$format['decimalSeparator'],
$format['thousandSeparator']
);
}
return $number;
}
/**
Example. Formatting data in which the decimal separator can occur as the comma
and dot. Formatting into Russian format: -12 345,67
*/
echo formatNumber($number, [
'numOfDecimals' => 2,
'decimalSeparator' => ',',
'thousandSeparator' => ' '
], ',.');
?>
===============================================================================
//Cep Brasil
function getCEP($cep){
return number_format(substr($cep, 0, 5),0,"",".").'-'.substr($cep, 5,
3);
}
//Saida 12.345-67
===============================================================================
I came into a need to show two decimal places, but the desire to drop the
decimal portion off if it is zero. This function is a direct replacement for
number_format:
Example:
Outputs:
25
25.52
50.1
5.5
Good for weight conversions (1 oz vs. 1.00 oz). Feels less "automated."
The above will trim all insignificant zeros from both ends of the string,
though I'm not sure I've ever seen leading zeros returned.
===============================================================================
'' ,'1'=> 'one' ,'2'=> 'two' ,'3' => 'three','4' => 'four','5' =>
'five',
'6' => 'six','7' => 'seven','8' => 'eight','9' => 'nine','10' => 'ten',
'11' => 'eleven','12' => 'twelve','13' => 'thirteen','14' => 'fouteen',
'15' => 'fifteen',
'16' => 'sixteen','17' => 'seventeen','18' => 'eighteen','19' =>
'nineteen','20' => 'twenty',
'30' => 'thirty','40' => 'fourty','50' => 'fifty','60' => 'sixty','70'
=> 'seventy',
'80' => 'eighty','90' => 'ninty');
//First find the length of the number
$number_length = strlen($number);
//Initialize an empty array
$number_array = array(0,0,0,0,0,0,0,0,0);
$received_number_array = array();
//Store all received numbers into an array
for($i=0;$i<$number_length;$i++){ $received_number_array[$i] =
substr($number,$i,1); }
//Populate the empty array with the numbers received - most critical
operation
for($i=9-$number_length,$j=0;$i<9;$i++,$j++){ $number_array[$i] =
$received_number_array[$j]; }
$number_to_words_string = "";
//Finding out whether it is teen ? and then multiplying by 10, example
17 is seventeen, so if 1 is preceeded with 7 multiply 1 by 10 and add 7 to it.
for($i=0,$j=1;$i<9;$i++,$j++){
if($i==0 || $i==2 || $i==4 || $i==7){
if($number_array[$i]=="1"){
$number_array[$j] = 10+$number_array[$j];
$number_array[$i] = 0;
}
}
}
$value = "";
for($i=0;$i<9;$i++){
if($i==0 || $i==2 || $i==4 || $i==7){ $value = $number_array[$i]
*10; }
else{ $value = $number_array[$i]; }
if($value!=0){ $number_to_words_string.= $words["$value"]." "; }
if($i==1 && $value!=0){ $number_to_words_string.= "Crores "; }
if($i==3 && $value!=0){ $number_to_words_string.= "Lakhs "; }
if($i==5 && $value!=0){ $number_to_words_string.= "Thousand "; }
if($i==6 && $value!=0){ $number_to_words_string.= "Hundred &
"; }
}
if($number_length>9){ $number_to_words_string = "Sorry This does not
support more than 99 Crores"; }
return ucwords(strtolower("Indian Rupees ".$number_to_words_string)."
Only.");
}
echo convertNumberToWordsForIndia("987654321");
//Output ==> Indian Rupees Ninty Eight Crores Seventy Six Lakhs Fifty Four
Thousand Three Hundred & Twenty One Only.
?>
===============================================================================
Here a function to filter exponential notation like 6e-06. Turn it to 0,000006
for comfortable reading. Supporting various number of decimals!
The maximum accuracy depends on sprintf('%f', $number). In this case 6
decimals. Expand it to 10 with '%.10f'.
===============================================================================
There has been some suggestions around on how to keep trailing zeros. Best way
is to use the example for currency provided by the php-crew in the sprintf
function help section.
That is:
===============================================================================
Here a function to get de size of a file in a human way using the function
number_format:
function convertFileSize($file, $size=null, $decimals=2, $dec_sep='.',
$thousands_sep=','){
if (!is_file($file)){
return "El fichero no existe";
}
$bytes = filesize($file);
$sizes = 'BKMGTP';
if (isset($size)){
$factor = strpos($sizes, $size[0]);
if ($factor===false){
return "El tamaño debe ser B, K, M, G, T o P";
}
} else {
$factor = floor((strlen($bytes) - 1) / 3);
$size = $sizes[$factor];
}
return number_format($bytes / pow(1024, $factor), $decimals, $dec_sep,
$thousands_sep).' '.$size;
}
Source: http://softontherocks.blogspot.com/2014/11/
obtener-el-tamano-de-un-fichero-y.html
===============================================================================
Some programmers may have scripts that use the number_format function twice on
a variable. However, if a number is 4 or more digits, using the function twice
with only the decimals parameter will lose part of the value that follows the
thousands separator.
To fix, remove the thousands separator by setting the decimal point and
thousands separator parameters like so:
If it's 3 digits or less, then it works normally with only the decimals
parameter since there is no thousands separator.
===============================================================================
function to convert numbers to words
indian: thousand,lakh,crore
Note: function can only convert nos upto 99 crores
'' ,'1'=> 'one' ,'2'=> 'two' ,'3' => 'three','4' => 'four'
,'5' => 'five','6' => 'six','7' => 'seven','8' => 'eight','9' => 'nine','10' =>
'ten','11' => 'eleven','12' => 'twelve','13' => 'thirteen','14' => 'fouteen',
'15' => 'fifteen','16' => 'sixteen','17' => 'seventeen','18' => 'eighteen','19'
=> 'nineteen','20' => 'twenty','30' => 'thirty','40' => 'fourty','50' =>
'fifty','60' => 'sixty','70' => 'seventy','80' => 'eighty','90' => 'ninty',
'100' => 'hundred &','1000' => 'thousand','100000' => 'lakh','10000000' =>
'crore');
function no_to_words($no)
{ global $words;
if($no == 0)
return ' ';
else { $novalue='';$highno=$no;$remainno=0;$value=100;$value1=
1000;
while($no>=100) {
if(($value <= $no) &&($no < $value1)) {
$novalue=$words["$value"];
$highno = (int)($no/$value);
$remainno = $no % $value;
break;
}
$value= $value1;
$value1 = $value * 100;
}
if(array_key_exists("$highno",$words))
return $words["$highno"]." ".$novalue." ".no_to_words($remainno);
else {
$unit=$highno%10;
$ten =(int)($highno/10)*10;
return $words["$ten"]." ".$words["$unit"]." ".$novalue." ".
no_to_words($remainno);
}
}
}
echo no_to_words(999978987);
?>
===============================================================================
Writing a function to get English ordinals for numbers is a problem every
computer science student will face. Here's my solution - nice, short and
simple:
===============================================================================
Simple function to show money as only dollars if no cents, but will show 2
decimals if cents exist.
The 'cents' flag can force to never or always show 2 decimals
'.$b.' = '.formatMoney($b, 1));
1 = $1
1234 = $1,234
1.5 = $1.50
1.234 = $1.23
2.345 = $2.35
2.001 = $2.00
2.1 = $2.10
1.000 = $1
1.2345 = $1.23
12345 = $12,345
0 = $0
0.00 = $0
// never show cents ($cents=0)
foreach ($a as $b) echo (' '.$b.' = '.formatMoney($b, 0));
1 = $1
1234 = $1,234
1.5 = $2
1.234 = $1
2.345 = $2
2.001 = $2
2.1 = $2
1.000 = $1
1.2345 = $1
12345 = $12,345
0 = $0
0.00 = $0
// always show cents ($cents=2)
foreach ($a as $b) echo (' '.$b.' = '.formatMoney($b, 2));
1 = $1.00
1234 = $1,234.00
1.5 = $1.50
1.234 = $1.23
2.345 = $2.35
2.001 = $2.00
2.1 = $2.10
1.000 = $1.00
1.2345 = $1.23
12345 = $12,345.00
0 = $0.00
0.00 = $0.00
?>
Cheers :)
And remember to always contribute custom functions if they might be useful to
the rest of us or future versions of the php language.
===============================================================================
Exemplo: Example:
';
echo '2: '.number_format($number, 2, '.', '').' ';
echo '3: '.number_format($number, 2, ',', '.').' ';
echo '4: '.number_format($number, 2, '.', ',').' ';
echo '5: '.number_format($number, 2, ',', ' ').' ';
echo '6: '.number_format($number, 2, ',', "'").' ';
echo '7: '.number_format($number, 2, '', '').' ';
?>
Resultado: Result:
1: 1234567,90 -> Decimal separado por ,
2: 1234567.90 -> Decimal separado por .
3: 1.234.567,90 -> Moeda Brasil, Alemanha
4: 1,234,567.90 -> Inglês, USA
5: 1 234 567,90 -> França
6: 1'234'567,90 -> Suíça
7: 123456790 -> Sem decimal
===============================================================================
here is the code to convert number to Indonesian text, this code has limitation
as is number_format function. sorry for this.
/*
* Created : Iwan Sapoetra - Jun 13, 2008
* Project : Web
* Package : cgaf
*
*/
function terbilang( $num ,$dec=4){
$stext = array(
"Nol",
"Satu",
"Dua",
"Tiga",
"Empat",
"Lima",
"Enam",
"Tujuh",
"Delapan",
"Sembilan",
"Sepuluh",
"Sebelas"
);
$say = array(
"Ribu",
"Juta",
"Milyar",
"Triliun",
"Biliun", // remember limitation of float
"--apaan---" ///setelah biliun namanya apa?
);
$w = "";
if ($num <0 ) {
$w = "Minus ";
//make positive
$num *= -1;
}
$snum = number_format($num,$dec,",",".");
die($snum);
$strnum = explode(".",substr($snum,0,strrpos($snum,",")));
//parse decimalnya
$koma = substr($snum,strrpos($snum,",")+1);
$isone = substr($num,0,1) ==1;
if (count($strnum)==1) {
$num = $strnum[0];
switch (strlen($num)) {
case 1:
case 2:
if (!isset($stext[$strnum[0]])){
if($num<19){
$w .=$stext[substr($num,1)]." Belas";
}else{
$w .= $stext[substr($num,0,1)]." Puluh ".
(intval(substr($num,1))==0 ? "" : $stext[substr
($num,1)]);
}
}else{
$w .= $stext[$strnum[0]];
}
break;
case 3:
$w .= ($isone ? "Seratus" : terbilang(substr($num,0,1)) .
" Ratus").
" ".(intval(substr($num,1))==0 ? "" : terbilang(substr
($num,1)));
break;
case 4:
$w .= ($isone ? "Seribu" : terbilang(substr($num,0,1)) .
" Ribu").
" ".(intval(substr($num,1))==0 ? "" : terbilang(substr
($num,1)));
break;
default:
break;
}
}else{
$text = $say[count($strnum)-2];
$w = ($isone && strlen($strnum[0])==1 && count($strnum) <=3?
"Se".strtolower($text) : terbilang($strnum[0]).' '.$text);
array_shift($strnum);
$i =count($strnum)-2;
foreach ($strnum as $k=>$v) {
if (intval($v)) {
$w.= ' '.terbilang($v).' '.($i >=0 ? $say[$i] : "");
}
$i--;
}
}
$w = trim($w);
if ($dec = intval($koma)) {
$w .= " Koma ". terbilang($koma);
}
return trim($w);
}
//example
echo terbilang(999999999999)."\n";
/**
* result : Sembilan Ratus Sembilan Puluh Sembilan Milyar Sembilan Ratus
Sembilan Puluh Sembilan Juta Sembilan Ratus Sembilan Puluh Sembilan Ribu
Sembilan Ratus Sembilan Puluh Sembilan
*/
echo terbilang(9999999999999999);
/**
* todo : fix this bug pleasese
* problem : number_format(9999999999999999) <--- <IP_ADDRESS>.000.000,0000
* Result : Sepuluh Biliun
*/
===============================================================================
Using the number_format I'm having some unexpected results. 30% of 14.95
(14.95 * .3) = 4.485. Now 4.485 rounded to two decimal places should give me
4.49.
Example:
Unexpected Results:
4.48
4.49
===============================================================================
I have to verify price data from several formats, eg:
- 12.345,67 (German)
- 12,345.67 (English)
- 12 345,67 (French)
- 12'345,67 (Swiss)
Here is a quick function which helps me out of all this format mess, but please
not the I only check for:
- positive values
- max 2 digits on the right side (.12)
function mk_price_to_float($price){
$price = trim($price);
if(preg_match("~^([0-9]+|(?:(?:[0-9]{1,3}([.,' ]))+[0-9]{3})+)(([.,])[0-9]
{1,2})?$~", $price, $r)){
if(!empty($r['2'])){
$pre = preg_replace("~[".$r['2']."]~", "", $r['1']);
}else{
$pre = $r['1'];
}
if(!empty($r['4'])){
$post = ".".preg_replace("~[".$r['4']."]~", "", $r['3']);
}else{
$post = false;
}
$form_price = $pre.$post;
return $form_price;
}
return false;
}
This code is used at http://www.produkte24.com/ and http://www.who-sells-it.com
/ and works like a charm.
===============================================================================
I use the following to get around the negative zero problem:
===============================================================================
simpler function to convert a number in bytes, kilobytes....
=1024) {
$c++;
$a = $a/1024;
}
return number_format($a,($c ? 2 : 0),",",".")." ".$unim[$c];
}
?>
you may also add others units over PeraBytes when the hard disks will reach
1024 PB :)
===============================================================================
This is a simple and useful function to convert a byte number in a KB or MB:
function filesize_format ($bytes) {
$bytes=(float)$bytes;
if ($bytes<1024){
$numero=number_format($bytes, 0, ',', '.')." Byte";
return $numero;
}
if ($bytes<1048576){
$numero=number_format($bytes/1024, 2, ',', '.')." KByte";
return $numero;
}
if ($bytes>=1048576){
$numero=number_format($bytes/1048576, 2, ',', '.')." MByte";
return $numero;
}
}
?>
===============================================================================
'st', 2 => 'nd', 3 => 'rd', 4 => 'th', 5 => 'th'
, 6 => 'th', 7 => 'th', 8 => 'th', 9 => 'th', 0 => 'th');
# Store the last 2 digits of $n in order to check if it's a teen number.
$if_teen = substr($n, -2, 2);
# Store the last digit of $n in order to check if it's a teen number. If $n
is a single digit, $single will simply equal $n.
$single = substr($n, -1, 1);
# If $if_teen is in array $teen_array, store $n with 'th' concantenated
onto the end of it into $new_n
if ( in_array($if_teen, $teen_array) )
{
$new_n = $n . 'th';
}
# $n is not a teen, so concant the appropriate value of it's $single_array
key onto the end of $n and save it into $new_n
elseif ( $single_array[$single] )
{
$new_n = $n . $single_array[$single];
}
# Return new
return $new_n;
}
?>
===============================================================================
If you want to display a number ending with ,- (like 200,-) when there are no
decimal characters and display the decimals when there are decimal characters i
use:
function DisplayDouble($value)
{
list($whole, $decimals) = split ('[.,]', $value, 2);
if (intval($decimals) > 0)
return number_format($value,2,".",",");
else
return number_format($value,0,".",",") .",-";
}
===============================================================================
See also the documentation for localeconv, which will provide values for
decimal point and thousands separator from the C standard library.
Of course localeconv features many more locale information, like indicating to
put the negative sign behind the value for some locale settings which can't be
used to customize present number_format.
===============================================================================
To convert numbers to thier textual representations, you can use an adapted
version of the Number::Spell Perl module. The PHP conversion can be found here:
http://pear.php.net/package/Numbers_Words
===============================================================================
if you converted a number to a German format with number_format() and want to
save it in mySQL, you first have to change the number format back to an English
format.
For example
10.453,21 >>>> 10453.21
Here is an example how to do this:
$field_array=explode(".", $field_inhalt);
$field_inhalt=$field_array[0].$field_array[1];
$foeld_array=explode(",", $field_inhalt);
$field_inhalt=$field_array[0].".".$feld_array[1];
$field_inhalt=sprintf($field_inhalt, 2);
$field_inhalt is the variable of the actual number you want to change to the
english format.
===============================================================================
About the function of j-a-n at gmx dot de: it's useful, but the argument of the
function is $number while the logic of the function requires it to be $in.
===============================================================================
The modification to number_format below does what I actually want it to do,
with currency, for example. I want it to show $1.40 and not $1.4 or $1.400 -
except in the rare case where I have $1.435 for something, in which case I
*don't* want it to round. The ugliness below serves my purpose.
function nof($number,$decimals) {
if (number_format($number,$decimals,'.',',') != $number) {
return $number;
} else {
return number_format($number,$decimals,'.',',');
}
}
===============================================================================
You could use the following regular expression to divide
a number into parts:
$1-number without fractal part
$2-fractal part
$3-first 2 digits of the fractal part
$4-rest of the fractal part
the regex removes any leading and trailing symbols and leading zeros. It doesnt
validate the number, so 12 41 is considered to be correct input!
english notation:
/^.*?[0]*([\d\s]+)(([\.][\d]{0,2})([\d]*))?.*?$/
french notation:
/^.*?[0]*([\d\s]+)(([\,][\d]{0,2})([\d]*))?.*?$/
Outputs:
1,234.50
$number='e00012 41.100001e-4fasfd';
would output:
12 41.10
===============================================================================
A bug was issued that -0,00 is invalid output from number_format(), but the bug
was rejected since the number "-0.0000000000000000001E-999 is about -0". And
the developer felt this was correct output.
Please beware of negative numbers close to zero, as they might produce this
unusable (and in my opinion incorrect/off-description) output.
===============================================================================
A more reliable and concise way of doing what S. Rahmel was trying to do below
is as follows:
The str_replace() call will first replace all dots with blanks, and then
replace all commas with dots. That way, it doesn't break down when you try a
number over one million (i.e. 1.010.453,21).
Drew
===============================================================================
enjoy the PHP!
===============================================================================
number_format is pretty fast. It's much slower than calculation though:
";
for ($i=0;$i<100000;$i++)
{
echo number_format(microtime(true)-$start,25)."\n";
}
echo "Parsetime: ".(microtime(true)-$start);
?>
This takes 1.03 seconds all the time. Without the -$start in the number_format
cmd, it takes exactly as long (I ran it about 20 times).
The simple calculation inside number_format takes relatively no time. Defining
the number before entering it into number_format also gives no change:
{
$num = microtime(true)-$start;
echo number_format($num,25)."\n";
}
Which concludes it takes about .01 sec to do a thousand number_format.
If you'd do the same routine without the number_format, it'd take .75 seconds
-> number_format very fast!
===============================================================================
I'd like to comment to the old notes of "stm555" and "woodynadobhar".
They wrote about "number_format_unlimited_precision()".
I guess many of us need that kind of function, which is the almost same
function as number_format but don't round a number.
Does Anyone know any new solution in a recent PHP version?
...
If no, how about the following function? (I fixed somethings like bugs of the
function in the old comment.)
output is:
string(10) "1.234,5678"
PHP Warning: 2 parameters for number_format_unchanged_precision() have the
same value, that is "," for $dec_point and $thousands_sep in...
string(10) "1,234,5678"
string(10) "12,345,678"
string(7) "-0,5678"
===============================================================================
function formats numbers of datetime type,
===============================================================================
Maybe it is documented, but I just missed it. However, a comment is always
useful.
An array will always be converted into 1, so, if you have:
Since it took me a while to figure it out, I hope this will save somebody's
time.
Greetings !!
===============================================================================
When apply number_format on number with separator on thousands, result is
wrong. This function accept number of any format
$value) {
if(!is_numeric($value)){
if($decPointIsHere==""){
$decPointIsHere=$key;
}
}
}
//decimal comma or whatever it is replace with dot
//$decPointIsHere is the key of the element that will contain decimal
separator dot
if($decPointIsHere!=""){
$numberArrRev[$decPointIsHere]=".";
}
//again check through array for non numerical characters but skipping
allready processed keys
//if is not number remove from array
foreach ($numberArrRev as $key => $value) {
if(!is_numeric($value) && $key>$decPointIsHere){
unset($numberArrRev[$key]);
}
}
//reverse back, at the start reversed array $numberArrRev to $numberArr
$numberArr=array_reverse($numberArrRev);
//create string from array
$numberClean=implode("",$numberArr);
// apply php number_format function
return number_format($numberClean,$decPlaces,$decSep,$thouSep);
}
echo format_price("1 225 552, 55",2,',',' ')." ";
echo format_price("1.225.552, 55",2,',',' ')." ";
echo format_price("1'225'552. 55",2,',',' ')." ";
echo format_price("1225552.55",2,',',' ')." ";
?>
all results are: 1 225 552,55
===============================================================================
Needed an easy way to format account number with leading zeros, e.g.
0-001-231-237
===============================================================================
A simple funtion to format american dollars.
This will output: " $52 and ¢34.2 ".
===============================================================================
What do you do if some of your numbers have decimal places, and some don't?
You can switch between functions, but if you're building it in a loop, that's
not a good solution. Instead, we have the same as below, with a slight change:
function number_format_unlimited_precision($number,$decimal = '.'){
$broken_number = explode($decimal,$number);
if($broken_number[1]==0){
return number_format($broken_number[0]);
}else{
return number_format($broken_number[0]).$decimal.$broken_number[1];
};
};
===============================================================================
Sometimes, I'm sure, you guys are looking for a way to do the exact opposite of
this function: convert a comma-filled number back to normal decimal.
Here's a quick code that popped into my head today:
This is especially useful when validating user input. Some people like to
include comma's with their numbers.
Some also like to include the dollar-sign when entering prices. Here's a
modification:
Okay, that takes care of it, I use the PHP4 array compatibility update to
remove several characters.
Don't forget to either use single-quotes or escape the dollar-sign!
~Cody G.
===============================================================================
As many people state the number_format function will round. Now if you're like
me and you don't want stuff to round (and the functions below do not work for
you) you can try a little regex:
The regex used when the number is not an int ensures that 3.99887 GB comes out
as 3.99 GB instead of 4GB as it does from number_format or the functions below.
===============================================================================
Remember that number_format returns a string, so you shouldn't run a
number_format on a variable that's already a product of number_format (it will
only take the first token of the string)...
eg. echo number_format("123,456.00", 2);
produces: 123.00
===============================================================================
Hey Guys, dont know if this is the best way but it worked for me as i faced a
problem where I had to split any large number > then 10K into into to exact
split amounts.. so i wrote this this to do the trick.. hope it helps some one
out there!
0) $valtwo++;
return array($valone, $valtwo);
}
function split2vals($num,$split_amount)
{
$store=array();
$times = round(($num/$split_amount));
$amount= $num/$times;
for($i=0;$i<$times;$i++)
{
$store[]=round($amount);
}
foreach($store as $index=>$value)
{
if($value>$split_amount)
{
$get_splits=divide22($value);
//unset the split
unset($store[$index]);
$store[]=$get_splits[0];
$store[]=$get_splits[1];
}
}
$sum=array_sum($store);
if($sum > $num){
$sub=$sum-$num;
$end=end($store);
array_pop($store);
$store[]=$end-$sub;
}
if($sum < $num){
$store[]=($num-$sum);
}
return $store;
}
//USAGE
$check_amount=50567.83;
echo 'Input Split = '.$check_amount.'
Should Be Exact ='. $sum;
exit();
?>
===============================================================================
if you want as a separator and use windows charset this piece of code
may help:
===============================================================================
You could add padding zeros like this:
$number="129";
$number=sprintf("%08d",$number);
?>
===============================================================================
number_format($number,$precision,".","") should be used when setting the value
of form elements because if you read the number into a double upon submission,
it will only store digits before the comma.
ie.
===============================================================================
Since number_format returns a string, you must perform all mathmatical
functions on the number before applying number_format:
$total = 100;
$total = number_format($total, 2);
$shipping = 20.00;
$grand_total = $total + $shipping;
echo number_format($grand_total, 2);
/* The above will return 21.00 because $total is now a string, and no longer an
integer or float. Since a string will have a value of 1, the addition of the
two will return 21 and not 120. */
$total = 100;
$shipping = 20.00;
$grand_total = $total + $shipping;
echo number_format($grand_total, 2);
/* This works, and will return 120.00 as intended */
?>
===============================================================================
The function rlerne posted does not work well in many cases:
Fail examples:
This one is correct:
===============================================================================
This function formats an decimal number to a String.
But it does'n use an fixed count of decimals but calculates the needed count of
decimals.
function formatNumber( $number, $decimals=2, $dec_point=".", $thousands_sep=
",") {
$nachkomma = abs($in - floor($in));
$strnachkomma = number_format($nachkomma , $decimals, ".", "");
for ($i = 1; $i <= $decimals; $i++) {
if (substr($strnachkomma, ($i * -1), 1) != "0") {
break;
}
}
return number_format($in, ($decimals - $i +1), $dec_point, $thousands_sep);
}
?>
Example:
formatNumber( 100.00 );
--> 100
formatNumber( 100.50 );
--> 100.5
formatNumber( 100.1234 );
--> 100.12
formatNumber( 100.12, 4 );
--> 100.12
formatNumber( 100.12345, 4 );
--> 100.1234
===============================================================================
People here in India are more used to counting money in Lakhs & Crores .. so
here is the code for formatting the commas with thousands for the first time
and then with hundred multiples from there after.
Ex: 1234567 -> 12,34,567
3 & strlen($num) <= 12){
$last3digits = substr($num, -3 );
$numexceptlastdigits = substr($num, 0, -3 );
$formatted = makecomma($numexceptlastdigits);
$stringtoreturn = $formatted.",".$last3digits.".".$decimalpart
;
}elseif(strlen($num)<=3){
$stringtoreturn = $num.".".$decimalpart ;
}elseif(strlen($num)>12){
$stringtoreturn = number_format($num, 2);
}
if(substr($stringtoreturn,0,2)=="-,"){$stringtoreturn = "-".substr(
$stringtoreturn,2 );}
return $stringtoreturn;
}
$num = 1234567;
echo formatInIndianStyle($num);
?>
===============================================================================
The following function converts a string into Float or Integer while taking the
given or locale number format into account.
===============================================================================
If you want to use nbsp as decimal/thousand delimiter with UTF-8 you have to
replace the whitespace after using number_format:
===============================================================================
this also works as well
$number = "29346.99"; //value
echo "$" .number_format($number, 2, '.', ',');
produces $29,346.99
===============================================================================
One-liner to add filesizes and print a human readable result:
seq 1 500 | php -r '$t=0;while(1){$a=rtrim(fgets(STDIN));if(feof(STDIN))break;
$t+=$a+0;} $p=floor(log($t, 1024)); printf("%.0f%s\n", $t/pow(1024,$p),substr
("BKMGT",$p,1));'
-- Ren
===============================================================================
To address the problems number_format has when dealing with big numbers I've
created my own Number_Format method, it acts the same way as number_format and
takes the same arguments but deals with numbers as strings solving the problems
above referred.
(The other methods are available at http://www.alixaxel.com/wordpress/2007/05/
19/php-math-library/)
function Number_Format($number, $decimal_precision = 0, $decimals_separator =
'.', $thousands_separator = ',')
{
if ($this->Is_Negative($number))
{
$negative = true;
$number = str_replace('-', '', $number);
}
$number = explode('.', str_replace(' ', '', $number));
$number[0] = str_split(strrev($number[0]), 3);
$total_segments = count($number[0]);
for ($i = 0; $i < $total_segments; $i++)
{
$number[0][$i] = strrev($number[0][$i]);
}
$number[0] = implode($thousands_separator, array_reverse($number[0]));
if ($negative === true)
{
$number[0] = '-' . $number[0];
}
if (!empty($number[1]))
{
$number[1] = $this->Round($number[1], $decimal_precision);
}
$number = implode($decimals_separator, $number);
return $number;
}
I hope this is useful for someone!


Front End Web Developer
Projects
Follower
Following
Skills : HTML, CSS, JavaScript, jQuery, Bootstrap, WordPress, Scss and others


Minnie Mouse is played by Nouf Ahmed AlNuaimi. Nouf is from the United Arab Emirates and she plans to major in Interactive Media with a minor in SRPP.
Kim Namjoon is played by Oyungerel Amarsanaa. She is a freshman from Mongolia who is intending to major in Computer Science.
'Oh the Places You'll Go' is played by Prince Ampofo. Prince is from Ghana and is majoring in Computer Science.
'The Miracle of Mindfulness' is played by Shyngys Karishev. He is originally from Kazakhstan and plans to major in Computer Science with a minor in Interactive Media.
About Us
We are a group of four students studying at NYU Abu Dhabi and we made this film as part of our summer course, Communications Lab, taught by professor Pierre Depaz. This is our entry to the annual 30-Minute Film Festival 2021.


Classes that are serializable should provide a serialVersionUID field.
This rule is deprecated, use {rule:squid:S2057} instead.


Build a page
You can build your own page layout from scratch, starting with the most basic markup:
<!doctype html>

<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="stylesheet" href="[STYLESHEET URL]" type="text/css" media="all" />
<title>[PAGE TITLE]</title>

The [STYLESHEET URL]
referenced above is the Skin stylesheet as described here.
Container classes
There are several container classes to choose from, which are applied to the #content
element:
| Class | Description |
|---|---|
container |
100% max-width |
container-md |
600px max-width |
container-lg |
900px max-width |
container-xl |
1200px max-width |
container-article |
32em max-width (approx 65 character lines) |
Body classes
There are several classes that can be added to the body
element which will help in styling the page in different ways:
| Class | Description |
|---|---|
rounded |
Adds a rounded border radius to all the squared elements |
edge |
Allows the page wrapper to extend all the way to the edge of the window (example) |
flat |
Forces the entire page background to be the same color, giving it a flat appearance (example) |
boxed |
Makes each container it's own individual box (example) |


HTTPS stands for hyper-text transfer protocol secure. HTTP stands for hyper-text transfer protocol. HTTPS is the more secure option when you are deciding what you want to do with your site.
Every site should use HTTPS, not just sites where you will have things like credit card infomration. Any time you are collecting information from people you should be using HTTPS. As a user, you should not trust sites that do not use HTTPS as it is easy for hackers to access your information.
There is many reasons for using HTTPS which inluce:


This document provides an overview of the scripting features in Java Platform, Standard Edition (Java SE).
This document is intended for Java application programmers who want to execute code written in scripting languages. It is assumed that the you are familiar with Java and a version of the ECMAScript language standard (JavaScript).
For information about Oracle's commitment to accessibility, visit the Oracle Accessibility Program website at http://www.oracle.com/pls/topic/lookup?ctx=acc&id=docacc
.
Access to Oracle Support
Oracle customers that have purchased support have access to electronic support through My Oracle Support. For information, visit http://www.oracle.com/pls/topic/lookup?ctx=acc&id=info
or visit http://www.oracle.com/pls/topic/lookup?ctx=acc&id=trs
if you are hearing impaired.
For more information, see the Java Scripting API (the javax.script
package) specification at http://docs.oracle.com/javase/8/docs/api/javax/script/package-summary.html
The following text conventions are used in this document:
| Convention | Meaning |
|---|---|
| boldface | Boldface type indicates graphical user interface elements associated with an action, or terms defined in text or the glossary. |
| italic | Italic type indicates book titles, emphasis, or placeholder variables for which you supply particular values. |
monospace |
Monospace type indicates commands within a paragraph, URLs, code in examples, text that appears on the screen, or text that you enter. |


Bootstrap Dropdown
| sun | mon | tue | wed | thu | fri | sat |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | 5 | 6 | 7 |
| 8 | 9 | 10 | 11 | 12 | 13 | 14 |
| 15 | 16 | 17 | 18 | 19 | 20 | 21 |
| 21 | 23 | 24 | 25 | 26 | 27 | 28 |
| 29 | 30 | 31 | 1 | 2 | 3 | 4 |
sun mon tue wed thu fri sat 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 21 23 24 25 26 27 28 29 30 31 1 2 3 4
PopMetal226
Design12
Heading One
Heading Two
Heading Three
Heading Four
Heading Five
Interstate 80 Business (BL-80) isa business loop of Interstate 80.
web developing
Interstate 80 Business (BL-80) isa business loop of Interstate 80.
| Dribble.com | ||
| Behance | ||
| Dehance | ||
| Dribble.com | ||
| Behance | ||
| Dehance | ||
| Dribble.com |
| Behance |
| Dehance |
| Dribble.com |
| Behance |
| Dehance |


Have you ever had to use one of those 2000-plus page phone books full of all kinds of organizations and people's names printed in a small font in multiple columns on each page? Finding the information you need in such books can be an ordeal. As a matter of fact, searching through huge data sets may be a challenging task for a computer, too.
In this project, you will create a phone book; you will implement several sorting and searching algorithms and compare their efficiency in dealing with a big dataset. For this, you will need to download a file that contains the phone numbers of over a million people in multiple cities.
In this stage, you should implement the simplest possible search to find the numbers of a few people whose names are listed in our .txt file.
It takes time to look through all the records in a big file. We recommend that you manually test your program with a simplified dataset: small_directory.txt and small_find.txt. However, to pass all the tests, you will have to work with the big files mentioned above.
Note how long it takes you to do the task with linear search so that you can compare the results with those of other search methods.
To measure the time difference, you can use System.currentTimeMillis()
.
Also notice that you don't need to read the file "directory.txt" again and again after each query. You should load all its lines into memory and measure only the search process.
Below is an example of what your output should look like:
Start searching...
Found 500 / 500 entries. Time taken: 1 min. 56 sec. 328 ms.


+
-
SKINS
ABOUT
ABOUT
ABOUT
WORK
WORK
WORK
Projects
Projects
Projects
Contact
Contact
Contact
Jacob
Age:
Gender:
Wish1:
Sleep tomorrow to dream on my own
Wish2:
Follow your heart!!!


The Microsoft SQL Server JDBC Driver uses the JDBC basic data types to convert the SQL Server data types to a format that can be understood by the Java programming language, and vice versa. Starting with the Microsoft SQL Server JDBC Driver version 2.0, the JDBC driver provides support for the JDBC 4.0 API, which includes the SQLXML data type, and National (Unicode) data types, such as NCHAR, NVARCHAR, LONGNVARCHAR, and NCLOB.
Data Type Mappings
The following table lists the default mappings between the basic SQL Server, JDBC, and Java programming language data types:
| SQL Server Types | JDBC Types (java.sql.Types) | Java Language Types |
|---|---|---|
|
bigint |
BIGINT |
long |
|
timestamp binary |
BINARY |
byte[] |
|
bit |
BIT |
boolean |
|
char |
CHAR |
String |
|
decimal money smallmoney |
DECIMAL |
java.math.BigDecimal |
|
float |
DOUBLE |
double |
|
int |
INTEGER |
int |
|
image varbinary(max) |
LONGVARBINARY |
byte[] |
|
varchar(max) text |
LONGVARCHAR |
String |
|
nchar |
CHAR NCHAR (Java SE 6.0) |
String |
|
nvarchar |
VARCHAR NVARCHAR (Java SE 6.0) |
String |
|
nvarchar(max) ntext |
LONGVARCHAR LONGNVARCHAR (Java SE 6.0) |
String |
|
numeric |
NUMERIC |
java.math.BigDecimal |
|
real |
REAL |
float |
|
smallint |
SMALLINT |
short |
|
datetime smalldatetime |
TIMESTAMP |
java.sql.Timestamp |
|
varbinary udt |
VARBINARY |
byte[] |
|
varchar |
VARCHAR |
String |
|
tinyint |
TINYINT |
short |
|
uniqueidentifier |
CHAR |
String |
|
xml |
LONGVARCHAR SQLXML (Java SE 6.0) |
String SQLXML |
|
time |
TIME (1) |
java.sql.Time (1) |
|
date |
DATE |
java.sql.Date |
|
datetime2 |
TIMESTAMP |
java.sql.Timestamp |
|
datetimeoffset (2) |
microsoft.sql.Types.DATETIMEOFFSET |
microsoft.sql.DateTimeOffset |
(1) To use java.sql.Time with the time SQL Server type, you must set the sendTimeAsDatetime connection property to false.
(2) You can programmatically access values of datetimeoffset with DateTimeOffset Class.
The SQL Server sqlvariant data type is not currently supported by the JDBC driver. If a query is used to retrieve data from a table that contains a column of the sqlvariant data type, an exception will occur.
The following sections provide examples of how you can use the JDBC Driver and the basic data types. For a more detailed example of how to use the basic data types in a Java application, see Basic Data Types Sample.
Retrieving Data as a String
If you have to retrieve data from a data source that maps to any of the JDBC basic data types for viewing as a string, or if strongly typed data is not required, you can use the getString method of the SQLServerResultSet class, as in the following:
String SQL = "SELECT TOP 10 * FROM Person.Contact"; Statement stmt = con.createStatement(); ResultSet rs = stmt.executeQuery(SQL); while (rs.next()) { System.out.println(rs.getString(4) + " " + rs.getString(6)); } rs.close(); stmt.close();
Retrieving Data by Data Type
If you have to retrieve data from a data source, and you know the type of data that is being retrieved, use one of the get<Type> methods of the SQLServerResultSet class, also known as the getter methods. You can use either a column name or a column index with the get<Type> methods, as in the following:
ResultSet rs = stmt.executeQuery("SELECT lname, job_id FROM employee WHERE (lname = 'Brown')"); rs.next(); short empJobID = rs.getShort("job_id"); rs.close(); stmt.close();
Updating Data by Data Type
If you have to update the value of a field in a data source, use one of the update<Type> methods of the SQLServerResultSet class. In the following example, the updateInt method is used in conjunction with the updateRow method to update the data in the data source:
Statement stmt = con.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_UPDATABLE); ResultSet rs = stmt.executeQuery("SELECT lname, job_id FROM employee WHERE (lname = 'Brown')"); rs.next(); short empJobID = rs.getInt(2); empJobID++; rs.first(); rs.updateInt(2, empJobID); rs.updateRow(); rs.close(); stmt.close();
Updating Data by Parameterized Query
If you have to update data in a data source by using a parameterized query, you can set the data type of the parameters by using one of the set<Type> methods of the SQLServerPreparedStatement class, also known as the setter methods. In the following example, the prepareStatement method is used to pre-compile the parameterized query, and then the setString method is used to set the string value of the parameter before the executeUpdate method is called.
PreparedStatement pstmt = con.prepareStatement("UPDATE employee SET fname = ? WHERE (lname = 'Brown')"); String first = "Bob"; pstmt.setString(1, first); int rowCount = pstmt.executeUpdate(); pstmt.close();
For more information about parameterized queries, see Using an SQL Statement with Parameters.
Passing Parameters to a Stored Procedure
If you have to pass typed parameters into a stored procedure, you can set the parameters by index or name by using one of the set<Type> methods of the SQLServerCallableStatement class. In the following example, the prepareCall method is used to set up the call to the stored procedure, and then the setString method is used to set the parameter for the call before the executeQuery method is called.
CallableStatement cstmt = con.prepareCall("{call employee_jobid(?)}"); String lname = "Brown"; cstmt.setString(1, lname); Resultset rs = cstmt.executeQuery(); rs.close(); cstmt.close();
For more information about using the JDBC driver with stored procedures and input parameters, see Using a Stored Procedure with Input Parameters.
Retrieving Parameters from a Stored Procedure
If you have to retrieve parameters back from a stored procedure, you must first register an out parameter by name or index by using the registerOutParameter method of the SQLServerCallableStatement class, and then assign the returned out parameter to an appropriate variable after you run the call to the stored procedure. In the following example, the prepareCall method is used to set up the call to the stored procedure, the registerOutParameter method is used to set up the out parameter, and then the setString method is used to set the parameter for the call before executeQuery method is called. The value that is returned by the out parameter of the stored procedure is retrieved by using the getShort method.
CallableStatement cstmt = con.prepareCall("{call employee_jobid (?, ?)}"); cstmt.registerOutParameter(2, java.sql.Types.SMALLINT); String lname = "Brown"; cstmt.setString(1, lname); Resultset rs = cstmt.executeQuery(); short empJobID = cstmt.getShort(2); rs.close(); cstmt.close();
For more information about how to use the JDBC driver with stored procedures and output parameters, see Using a Stored Procedure with Output Parameters.


Mclaren-JonahJhay Record Label
Home
Artists
Allaccess
Releases
New Singles
Playlists
Our Label
Rick Ross
C.E.O
Drake
Human Resource
Jeniffer Lopez
Manager
Demi Lovato
Label Icon
‹
›


- My name is Aaron McPeek and I moved to Seattle in 1999. I have spent the last 5 years working as a Office Manager/Paralegal but decided earlier this year I needed a change and enrolled in the 101 course. I loved it and here I am.
- My name is Gavin Thomas. I am 24 years old and have lived in Washington my whole life. I graduated from UW Tacoma with a Bachelors in Psychology. I have always loved technology and am excited to graduate from 401 JavaScript one day.
- My name is Ian Waites - I came to Code Fellows to learn JavaScript! So far it has been an amazing experience. When I am not at Code Fellows I love spending time with my fiance and my dogs.
- My name is Katherine Pryszlak - I grew up in the Seattle area, and just returned after 12 years of traveling and adventure. I love coding because it is a transferrable skill that allows me to solve a puzzle while I keep moving.


Let's play Pig Dice!
Player 1
Roll
Hold
Roll Total
Current Roll Total
Player 2
Roll
Hold
Roll Total
Current Roll Total


public class ProportionalLineFollower extends Navigation
| Modifier and Type | Field and Description |
|---|---|
static boolean |
DEFAULT_FOLLOW_BLACK
Default value for follow a black line (true).
|
MAX_TURNING, MIN_TURNING, TURNING
| Constructor and Description |
|---|
ProportionalLineFollower(SingleMotor leftMotor,
SingleMotor rightMotor,
LightSensor frontLightSensor,
LightSensor backLightSensor)
Constructor method, creates the proportional line follower with the left
motor, the right motor, the front light sensor and the back light sensor.
|
| Modifier and Type | Method and Description |
|---|---|
LightSensor |
getBackLightSensor()
Get the back light sensor for proportional line follower.
|
LightSensor |
getFrontLightSensor()
Get the frontal light sensor for proportional line follower.
|
boolean |
isOnBlack()
Tells if it's following a black line.
|
void |
setBackLightSensor(LightSensor backLightSensor)
Set the back light sensor for proportional line follower.
|
void |
setFollowBlack(boolean followBlack)
Set the follow of a black line.
|
void |
setFrontLightSensor(LightSensor frontLightSensor)
Set the frontal light sensor for proportional line follower.
|
void |
start()
Start the navigation.
|
decreasePower, decreaseTurning, getPower, getTurning, increasePower, increaseTurning, left, right, setPower, setTurning, stop
public static final boolean DEFAULT_FOLLOW_BLACK
public ProportionalLineFollower(SingleMotor leftMotor, SingleMotor rightMotor, LightSensor frontLightSensor, LightSensor backLightSensor)
leftMotor
- The left motor.rightMotor
- The right motor.frontLightSensor
- The front light sensor.backLightSensor
- The back light sensor.public LightSensor getFrontLightSensor()
public LightSensor getBackLightSensor()
public boolean isOnBlack()
public void setFrontLightSensor(LightSensor frontLightSensor)
frontLightSensor
- The frontal light sensor.public void setBackLightSensor(LightSensor backLightSensor)
backLightSensor
- The back light sensor.public void setFollowBlack(boolean followBlack)
followBlack
- Follow a black line.public void start()
Navigation
start
in class Navigation


Home
This example use media queries to transform the sidenav to a top navigation bar when the screen size is 900px or less.
We have also added a media query for screens that are 400px or less, which will vertically stack and center the navigation links.
You will learn more about media queries and responsive web design later in our CSS Tutorial.


|
|
CIFXTaskData Class ReferenceInheritance diagram for CIFXTaskData:
List of all members.
Constructor & Destructor Documentation
| CIFXTaskData::CIFXTaskData |
( |
|
) |
[private] |
|
| CIFXTaskData::~CIFXTaskData |
( |
|
) |
[private, virtual] |
|
Member Function Documentation
| U32 CIFXTaskData::AddRef |
( |
void |
|
) |
[virtual] |
|
|
|
This method increments the reference count for an interface on a component.
- Note:
- It should be called for every new copy of a pointer to an interface on a given component.
- Returns:
- It returns a U32 that contains a value from 1 to 2^32 - 1 that defines the new reference count. The return value should only be used for debugging purposes.
Implements IFXUnknown. |
| IFXRESULT CIFXTaskData::GetCoreServices |
( |
IFXCoreServices ** |
ppCoreServices |
) |
[virtual] |
|
|
|
This method returns an IFXCoreServices pointer.
- Parameters:
-
- Returns:
- Returns an IFXRESULT code.
- IFX_OK upon success.
- IFX_E_NOT_INITIALIZED if this object has not yet been initialized.
- IFX_E_INVALID_POINTER if ppCoreServices is NULL.
Implements IFXTaskData. |
| IFXRESULT CIFXTaskData::GetOrigin |
( |
IFXUnknown ** |
ppObject |
) |
[virtual] |
|
|
|
This method retrieves the Origin pointer.
- Parameters:
-
| pObject | A pointer to a variable which will receive the Origin. |
- Returns:
- Returns an IFXRESULT code.
- IFX_OK upon success.
- IFX_E_NOT_INITIALIZED if this object has not yet been initialized.
- IFX_E_INVALID_POINTER if ppObject is NULL.
Implements IFXTaskData. |
| IFXRESULT CIFXTaskData::GetSortKey |
( |
U32 * |
pKey |
) |
[virtual] |
|
|
|
This method retrieves the sort key for this IFXTaskData instance.
No set method is provided, as the sort key is defined and generated by the implementation.
- Parameters:
-
| pKey | A pointer to a variable which will receive the key. |
- Returns:
- Returns an IFXRESULT code.
- IFX_OK upon success.
- IFX_E_NOT_INITIALIZED if this object has not yet been initialized.
- IFX_E_INVALID_POINTER if pKey is NULL.
Implements IFXTaskData. |
| IFXRESULT CIFXTaskData::GetTaskHandle |
( |
IFXTaskHandle * |
pTaskHandle |
) |
[virtual] |
|
|
|
This method retrieves the TaskHandle associated with this IFXTaskData instance.
- Parameters:
-
| pTaskHandle | A pointer to a variable which will receive the IFXTaskHandle. |
- Returns:
- Returns an IFXRESULT code.
- IFX_OK upon success.
- IFX_E_NOT_INITIALIZED if this object has not yet been initialized.
- IFX_E_INVALID_POINTER if pTaskHandle is NULL.
Implements IFXTaskData. |
| IFXRESULT CIFXTaskData::GetTaskManager |
( |
IFXTaskManager ** |
ppTaskManager |
) |
[virtual] |
|
|
|
This method retrieves the TaskManager pointer.
- Parameters:
-
| ppTaskManager | A pointer to a variable which will receive the Task Manager. |
- Returns:
- Returns an IFXRESULT code.
- IFX_OK upon success.
- IFX_E_NOT_INITIALIZED if this object has not yet been initialized.
- IFX_E_INVALID_POINTER if ppTaskManager is NULL.
Implements IFXTaskData. |
| IFXRESULT CIFXTaskData::GetTime |
( |
U32 * |
pTime |
) |
[virtual] |
|
|
|
This method retrieves the time associated with this IFXTaskData instance.
- Parameters:
-
| pTime | A pointer to a variable which will receive the time. |
- Returns:
- Returns an IFXRESULT code.
- IFX_OK upon success.
- IFX_E_NOT_INITIALIZED if this object has not yet been initialized.
- IFX_E_INVALID_POINTER if pTime is NULL.
Implements IFXTaskData. |
| IFXRESULT CIFXTaskData::GetUserData |
( |
void ** |
ppObject |
) |
[virtual] |
|
|
|
This method retrieves the UserData pointer.
- Parameters:
-
| ppUserData | A pointer to a variable which will receive the User Data. |
- Returns:
- Returns an IFXRESULT code.
- IFX_OK upon success.
- IFX_E_NOT_INITIALIZED if this object has not yet been initialized.
- IFX_E_INVALID_POINTER if ppUserData is NULL.
Implements IFXTaskData. |
| IFXRESULT CIFXTaskData::Initialize |
( |
IFXCoreServices * |
pCoreServices |
) |
[virtual] |
|
|
|
This method is used to initialize an IFXTaskData object.
- Parameters:
-
- Returns:
- Returns an IFXRESULT code.
- IFX_OK upon success.
- IFX_E_ALREADY_INITIALIZED if this object has already been initialized.
- IFX_E_INVALID_POINTER if pCoreServices is NULL.
Implements IFXTaskData. |
| IFXRESULT CIFXTaskData::MatchPattern |
( |
IFXTaskData * |
pPattern, |
|
|
BOOL * |
pResult |
|
) |
[virtual] |
|
|
|
This method compares this IFXTaskData instance to a reference instance.
The specific matching algorithm and success conditions are implementation defined. If the two instances are determined to match, pResult is set to TRUE; if they do not match, pResult is set to FALSE.
- Parameters:
-
| pViewPattern | An interface pointer to another IFXTaskData, against which this instance will be compared. If this pointer is NULL, then the match is automatically considered to be a success. |
| pResult | A pointer to a variable which will be set to TRUE or FALSE, according to the results of the match. |
- Returns:
- Returns an IFXRESULT code.
- IFX_OK upon success.
- IFX_E_NOT_INITIALIZED if this object has not yet been initialized.
- IFX_E_INVALID_POINTER if pViewPattern or pResult is NULL.
- IFX_E_UNSUPPORTED if pViewPattern does not support a required interface.
Implements IFXTaskData. |
| IFXRESULT CIFXTaskData::QueryInterface |
( |
IFXREFIID |
riid, |
|
|
void ** |
ppv |
|
) |
[virtual] |
|
|
|
This method provides access to the various interfaces supported by a component.
Upon success, it increments the component's reference count and hands back a pointer to the specified interface.
- Note:
- A number of rules must be adhered to by all implementations of IFXAPI QueryInterface . For a list of such rules, refer to the IFXCOM usage guidelines.
- Returns:
- Upon success, IFX_OK is returned. Otherwise, either IFX_E_INVALID_POINTER or IFX_E_UNSUPPORTED are returned.
Implements IFXUnknown. |
| U32 CIFXTaskData::Release |
( |
void |
|
) |
[virtual] |
|
|
|
This method decrements the reference count for the calling interface on a component.
- Note:
- If the reference count on a component falls to zero, the component is destroyed.
- Returns:
- It returns a U32 that contains a value from 1 to 2^32 - 1 that defines the new reference count. The return value should only be used for debugging purposes.
Implements IFXUnknown. |
| IFXRESULT CIFXTaskData::SetOrigin |
( |
IFXUnknown * |
pObject |
) |
[virtual] |
|
|
|
This method sets the Origin pointer.
The Origin is the object which caused the IFXTask::Execute to be invoked, and usually the object which created the IFXTaskData object.
- Parameters:
-
| pObject | A pointer to the Origin. NULL is valid. |
- Returns:
- Returns an IFXRESULT code.
- IFX_OK upon success.
- IFX_E_NOT_INITIALIZED if this object has not yet been initialized.
Implements IFXTaskData. |
| IFXRESULT CIFXTaskData::SetTaskHandle |
( |
IFXTaskHandle |
taskHandle |
) |
[virtual] |
|
|
|
This method sets the TaskHandle of the registration associated with this IFXTaskData instance.
The default value is IFXTASK_HANDLE_INVALID. THIS IS NORMALLY SET AUTOMATICALLY, rather than by the client.
- Parameters:
-
| taskHandle | An IFXTaskHandle. |
- Returns:
- Returns an IFXRESULT code.
- IFX_OK upon success.
- IFX_E_NOT_INITIALIZED if this object has not yet been initialized.
Implements IFXTaskData. |
| IFXRESULT CIFXTaskData::SetTaskManager |
( |
IFXTaskManager * |
pTaskManager |
) |
[virtual] |
|
|
|
This method sets the TaskManager that manages this TaskData object, if any.
THIS IS NORMALLY SET AUTOMATICALLY, rather than by the client.
- Parameters:
-
| pTaskManager | A pointer to the TaskManager. NULL is valid. |
- Returns:
- Returns an IFXRESULT code.
- IFX_OK upon success.
- IFX_E_NOT_INITIALIZED if this object has not yet been initialized.
Implements IFXTaskData. |
| IFXRESULT CIFXTaskData::SetTime |
( |
U32 |
time |
) |
[virtual] |
|
|
|
This method sets the time associated with this IFXTaskData instance.
- Parameters:
-
| time | A time value in milliseconds. |
- Returns:
- Returns an IFXRESULT code.
- IFX_OK upon success.
- IFX_E_NOT_INITIALIZED if this object has not yet been initialized.
Implements IFXTaskData. |
| IFXRESULT CIFXTaskData::SetUserData |
( |
void * |
pObject |
) |
[virtual] |
|
|
|
This method sets the UserData pointer.
The UserData pointer is ignored completely by the system, and if used, is completely the responsibility of the client. Clients may use this field to store any value that does not exceed the size of a void pointer.
- Parameters:
-
| pUserData | The user data pointer to set. NULL is valid. |
- Returns:
- Returns an IFXRESULT code.
- IFX_OK upon success.
- IFX_E_NOT_INITIALIZED if this object has not yet been initialized.
Implements IFXTaskData. |
Friends And Related Function Documentation
| IFXRESULT IFXAPI_CALLTYPE CIFXTaskData_Factory |
( |
IFXREFIID |
riid, |
|
|
void ** |
ppv |
|
) |
[friend] |
|
Member Data Documentation
© 1999 - 2006 Intel Corporation. All rights reserved.
* Other names and brands may be claimed as the property of others.
|
|