Questions tagged [value-of]

138 questions
0
votes
0 answers

Please tell me what is the meaning of the Boolean this expression returning? ( entry.target.classlist.toggle.valueof )

I want to trigger an if statement when the intersectionObserver API toggles a class in the DOM Element. I am just not sure what exactly is the boolean value returned by this expression: - entry.target.classlist.toggle.valueof; or…
0
votes
1 answer

Error with BigDecimal calculation regarding User Input

I have this idea for my assignment where I wanted a cash register system to calculate the total for an item when the user enters it's cost price and quantity of said item. That seemed to work, but then led my main problem - I wanted to let the user…
Vinnie
  • 1
  • 1
0
votes
2 answers

undefined (reading 'valueOf') finding the number of the week in Vue

I am trying to find the number of the week. So for this my function is: getWeekNumber(date) { const temp_date = new Date(date.valueOf()); const dayn = (date.getDay() + 6) % 7; temp_date.setDate(temp_date.getDate()…
magic bean
  • 787
  • 12
  • 39
0
votes
1 answer

Select value of xml inner data with xslt for-loop?

How to select the inner value of the element node in xml/xslt in a for-each loop without changing the given xml format. XML:
jsky
  • 2,225
  • 5
  • 38
  • 54
0
votes
1 answer

How to detect name of another variable but not his value javascript?

In the js code I have var a1 = "text in a1"; var right_text = a1; a1 is the variable where this text is written. the value of right_text will change. I need have more variables like a1 because each of them will do something else. switch…
Davidcz
  • 375
  • 1
  • 2
  • 11
0
votes
2 answers

How to stop Excel from auto-updating all cells in a column when I change a single value/cell

At first sight, it seems like an easy issue for me. But after extensive googling, I just can't seem to find the solution to this particular issue. The issue being: I have a table of data. But for some of the columns, Excel keeps on replicating the…
gurben
  • 1
  • 3
0
votes
1 answer

How do I apply italics to a tag inside an other tag in xsl?

I want to italicize the text between the tags (see code below) of my xml file via xsl. The tags are inside

tags. All text which is in

but not in should remain upright. xml :

Son cœur .... Chérubin…

0
votes
1 answer

Why can't this 4-byte hex number be converted into an int?

I am looking to create a java method that takes a 4-byte signed hex number and convert it into an int. However, when I test inputs such as "aaaaaaaa" or "ffffffff" Integer.valueOf("aaaaaaaa", 16) Integer.valueOf("ffffffff", 16) which should give…
0
votes
1 answer
0
votes
0 answers

there is a package or function in R that allows "Identifying Excel Entries that Add Up to a Specific Value"

I'm trying to perform the solver function to identify excel entries that add to a specific value with GRG non-linear resolution method in R, but so far I can't find specific information about it. The problem is almost the same as the following…
0
votes
0 answers

Integer.valueOf() confusion

On a slide in this Presentation on Project Valhalla (around 4:00) i stumbled across this Java gotcha: Integer.valueOf(42) == Integer.valueOf(42); BUT Integer.valueOf(420) != Integer.valueOf(420); Can somebody explain?
Philzen
  • 3,945
  • 30
  • 46
0
votes
1 answer

Are there any cases where `x.valueOf() === x` could return `false`?

I'm trying to understand the valueOf() method. https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/valueOf Is there a situation where a variable of any type could return false for the following check ? x.valueOf()…
cbdeveloper
  • 27,898
  • 37
  • 155
  • 336
0
votes
3 answers

Checking digits in string, doesnt work when the string starts with a 0

I have a homework assignment where we have to make a very basic console app for a fitness center, that can create members and employees. My problem occurs when i ask the user to type in the birthday of the new members. It is supposed to check if the…
0
votes
1 answer

In XSLT nested foreach loop output count is twice and same

In xslt transformation below is the input xml. 1 2
ashok
  • 1,078
  • 3
  • 20
  • 63
0
votes
1 answer

Read number as string sequence and convert first and last to an Integer

I'm new to programming and I've just started learning Java. I want to do a program that's asks the user to enter a string that contains a sequence of numbers and then takes the first and the last numbers of that sequence and check if these…
Aifa
  • 7
  • 4