Questions tagged [suffix]

A suffix is a group of letters, usually of a regular form, that has a meaning within it's short form, that when applied to a word changes the meaning and/or intent of that word.

A suffix is a group of letters, usually of a regular form, that has a meaning within it's short form, that when applied to a word changes the meaning and/or intent of that word.

258 questions
4
votes
6 answers

Is there a functional difference between "2.00" and "2.00f"?

I ask because I am using the Box2D library, which calls for mostly float arguments. Although I see a lot of example code that uses the 0.00f format, I am not quite sure if there is an actual difference between that and plain old 0.00. Will I be…
Noi Sek
  • 544
  • 8
  • 22
4
votes
2 answers

How to modify AWS EventBridge Rule to use AND instead of OR filter logic?

I want to trigger an AWS lambda function via EventBridge every time an S3 Object is created in an S3 bucket called "mybucket", but ONLY if its name/key ends with a ".csv"-suffix AND if it was created within the "in"-folder of that bucket. The…
4
votes
0 answers

Windows c++ libraries: What does the suffix 'z', 'd' and 'zd' mean?

I am sure this has been asked somewhere before - but I can't make a google question how to find the information. I have some windows c++ libraries (from a third-party) with the following extensions: ...core.lib (~ 800KB) ...cored.lib (~…
code_fodder
  • 15,263
  • 17
  • 90
  • 167
4
votes
1 answer

Circular Suffix Array in Java using Comparator

I'm trying to implement a CircularSuffixArray class in Java (Suffix array Wikipedia). In my approach, I created an inner class that implements Comparator to compare the first char of each suffix and, if they are equals, recursively call compare for…
fferrin
  • 888
  • 2
  • 12
  • 29
4
votes
4 answers

Is there a reason to always declare floats with the type suffix 'f' in C#?

When creating float variables, integers don't need a type suffix, i.e. all of these are valid: public float distance = 3; public float distance = 3f; public float distance = 0.3f; Is there a reason to use 3f instead of 3? Is the compiler smart…
Xander Luciano
  • 3,753
  • 7
  • 32
  • 53
4
votes
2 answers

Parse currency values from CSV, convert numerical suffixes for Million and Billion

I'm curious if there's any sort of out of the box functions in R that can handle this. I have a CSV file that I am reading into a data frame using read.csv. One of the columns in the CSV contains currency values in the format of…
user3246693
  • 679
  • 11
  • 22
3
votes
1 answer

How to sort Python strings both alphabetically by prefix and numerically by suffix?

I need to sort a list of strings, of the form: ["ccc_3.23", "b_0.00", "b_-1.10", "aa_-2.37", "aa_3.05", "aa_-2.11", "ccc_9.8"] first by prefix, then by suffix, such that the sorted list is: ["aa_-2.37", "aa_-2.11", "aa_3.05", "b_-1.17", "b_0.00",…
3
votes
1 answer

Flutter | How to show a Hint Text when a value is entered

I want the Hint Text to remain even when Text is entered in the TextField: But if I give TextField something like "hintText:" in simple way, Hint Text disappears when TextField is entered: What should I do so that the hintText doesn't disappear…
3
votes
2 answers

Change Flutter TextFormField suffix Icon Colors accoding to From Validation

I am trying to create an overlay widget for TextFormField suffix Icon. Normally we would be using ToolTip, but just trying something new because the overlay widget can be customized. I want to change the suffix Icon Color of TextFormField if it is…
sulli110
  • 145
  • 2
  • 16
3
votes
1 answer

dplyr mutate based on other column with different suffix

I have a dataframe similar to this one: df <- data.frame(a_1_1 = c(1, 0, 1), a_1_2=c(1,0,0),a_2_1=c(1,0,0), a_2_2=c(1,0 ,1), b=c(2,3,4)) I will like to create new variables by comparing the columns with the same prefix, in the following way: df <-…
user2246905
  • 1,029
  • 1
  • 12
  • 31
3
votes
4 answers

remove suffix from column names using rename_at in r

I have a dataframe with many columns ending in the same suffix, and I want to use rename_at() to remove them all, but I can't figure it out. library(tidyverse) my_df <- tibble(id = c(1, 2), jan_real = c(8, 10), feb_real = c(9, 10), mar_real = c(1,…
J.Sabree
  • 2,280
  • 19
  • 48
3
votes
3 answers

comparing the ending of the strings

I am writing a program to compare different strings. Specifically chemical elements that end with an OH. I have to return -1 if the string ends with OH. However, my program doesn't work. Where am I wrong? #include #include int…
user13442873
3
votes
1 answer

Proper Suffixes in Haskell

I want to create a Haskell function that prints the suffixes of a list: The function should do the following: > suffixes "123" ["23","3",""] > suffixes "1" [""] I have written the following code: suffixes :: [a] -> [[a]] suffixes [] = [] :…
bob
  • 101
  • 8
3
votes
3 answers

How to add suffix text to price in WooCommerce cart and checkout page?

I need to add a text mention after prices (sub-total, total...) displayed in my cart page and checkout page. I know how to do that on single page and shop page but not on the other pages. The only thing I found is this code, but it does not…
user6677795
3
votes
1 answer

Accessing the first Character of a String with no Characters

I am implementing a suffix trie in C++. The implementation of the Trie contructor can be seen below. #include #include #include "Trie.hpp" using namespace std; Trie::Trie(string T){ T += "#"; …
Luke Collins
  • 1,433
  • 3
  • 18
  • 36
1
2
3
17 18